rych / hash_pbkdf2-compat
Provides hash_pbkdf2() to PHP versions >=5.3,<5.5.
v1.0.1
2015-11-23 03:34 UTC
Requires
- php: >=5.3.3
- ext-hash: *
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is auto-updated.
Last update: 2026-02-23 13:46:32 UTC
README
This component provides compatibility for the hash_pbkdf2()
function on PHP versions >=5.3,<5.5.
Install
Via Composer
$ composer require rych/hash_pbkdf2-compat
Usage
When loaded via Composer on PHP versions <5.5, a global function hash_pbkdf2() is automatically loaded which matches
the >=5.5 built-in function as closely as possible. On PHP versions >=5.5, the shim function is available as
\Rych\hash_pbkdf2().
If not using Composer, make sure to include src/hash_pbkdf2-compat.php in order to load the function.
See the PHP documentation for hash_pbkdf2() for information.
Testing
$ composer test
Credits
License
The MIT License (MIT). Please see License File for more information.