Password hashing compatible with Java and PHP(与 Java 和 PHP 兼容的密码哈希)
问题描述
是否有我可以在 PHP 和 Java 中轻松使用的安全密码散列库(例如 phpass)或散列方法?
Is there a secure password hashing library (e.g. phpass) or hashing method that I can easily use in both PHP and Java?
推荐答案
如果你想做简单的事情,你可以使用 sha-N with salt.(N 为 1、256 或 512)
If you want do the easy thing, you can use sha-N with salt. (N being 1, 256 or 512)
Jeff Atwood 最近对此发表了一篇不错的博文,称 bcrypt 和 PBKDF2 是最好的选择.
Jeff Atwood did a nice blog post on that recently, saying that bcrypt and PBKDF2 are the best options.
在 PHP 中,您可以 使用 bcrypt(在 Java 中也是如此)
In PHP you can use bcrypt (and in Java too)
相关主题:
- 如何使用 bcrypt 对密码进行哈希处理PHP?
资源:
- 恐怖编码 - 速度散列
- 安全堆栈交换 - 有没有安全专家推荐bcrypt 用于密码存储?
这篇关于与 Java 和 PHP 兼容的密码哈希的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:与 Java 和 PHP 兼容的密码哈希
基础教程推荐
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 存储 20 位数字的数据类型 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
