rych/hash_pbkdf2-compat

Provides hash_pbkdf2() to PHP versions >=5.3,<5.5.

v1.0.1 2015-11-23 03:34 UTC

This package is auto-updated.

Last update: 2024-10-23 10:48:59 UTC


README

Latest Version on Packagist Software License Build Status Total Downloads

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.