Is there a secure password hashing library (e.g. phpass) or hashing method that I can easily use in both PHP and Java?
相关问题
- Views base64 encoded blob in HTML with PHP
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- Laravel Option Select - Default Issue
- How to maintain order of key-value in DataFrame sa
If you want do the easy thing, you can use sha-N with salt. (N being 1, 256 or 512)
Jeff Atwood did a nice blog post on that recently, saying that
bcrypt
andPBKDF2
are the best options.In PHP you can use
bcrypt
(and in Java too)Related topics:
Resouces:
Any standard library such as SHA*, MD* will do. SHA>2 is recommended (e.g. SHA512).
md5 and SHA with salt are the most widely used ones.