rych / hash_pbkdf2-compat
Provides hash_pbkdf2() to PHP versions >=5.3,<5.5.
Installs: 76 527
Dependents: 10
Suggesters: 0
Security: 0
Stars: 8
Watchers: 1
Forks: 3
Open Issues: 0
Requires
- php: >=5.3.3
- ext-hash: *
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is auto-updated.
Last update: 2024-10-23 10:48:59 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.