Provides forward compatibility with the
hash_* functions that ship with PHP 5.5.
$ composer require assertchris/hash-compat
$salt = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); $pbkdf2 = hash_pbkdf2("sha256", "password", $salt, 1000, 20);
The PBKDF2 method should not be used for hashing passwords for storage.
CRYPT_BLOWFISH are better suited for password storage.
If you have found a security issue, please contact the author directly at firstname.lastname@example.org.