Java port of the phpass library.
This library re-implements the Portable PHP password hashing framework password hashing algorithm in Java (direct port), in order to enable user logins and allow authentication against a PHP-based user credentials store.
Most common examples are:
- Drupal 6 with phpass module
- Drupal 7 (or later)
- TYPO3 with saltedpw extension
- WordPress 2.5 (or later)
Note: At this point, the implementation only supports SHA-512 password hashes that are custom to Drupal. However, enhancing this library to support the original phpass and other custom algorithms is piece of cake, and pull requests are welcome! :)
- Java 1.6 or later
-
To create a new hash for a password:
createHash(String password); -
To verify a password:
isMatch(String password, String storedHash);
You may use this software under the terms of the MIT License.