Provides forward compatibility with the hash_* functions that ship with PHP 5.5
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
.gitignore
.scrutinizer.yml
.travis.yml
code-of-conduct.md
composer.json
contributing.md
license.md
phpunit.xml
readme.md

readme.md

hash-compat

Build Status Code Quality Code Coverage Version License

Provides forward compatibility with the hash_* functions that ship with PHP 5.5.

Installation

$ composer require assertchris/hash-compat

Usage

$salt = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM);

$pbkdf2 = hash_pbkdf2("sha256", "password", $salt, 1000, 20);

Caution

The PBKDF2 method should not be used for hashing passwords for storage. password_hash() or crypt() with CRYPT_BLOWFISH are better suited for password storage.

Security Vulnerabilities

If you have found a security issue, please contact the author directly at cgpitt@gmail.com.