Skip to content

spharion88/phpass-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpass-java

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:

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! :)

Requirements

  • Java 1.6 or later

Usage

  • To create a new hash for a password:

      createHash(String password);
    
  • To verify a password:

      isMatch(String password, String storedHash);
    

License

You may use this software under the terms of the MIT License.

About

Java port of the PHPass library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors