Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Password hashing framework
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.mkd
password.php

README.mkd

Password

This is essentially a rewrite of the Portable PHP password hashing framework written by the Solar Designer. It gets rid of supporting older versions of PHP and now makes use of static methods. There's really not much more to it than that.

Dependencies

  • PHP 5.3+

Usage

<?php

  // Hash a given passphrase
  $hash = lib\password::hash( 'passphrase' );

  // Check a given passphrase against the stored hash
  if( lib\password::match( 'passphrase', $storedHash ) ) {
    // They match, we're good to go...
  }

?>

License

As the original, this is placed in the public domain.
Also, there is no warranty whatsoever.

Something went wrong with that request. Please try again.