kuyoto / scrypt
Provides the scrypt key derivation function.
v1.0.0
2020-05-29 08:22 UTC
Requires
- php: ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16.3
- phpunit/phpunit: ^6.5.8
This package is auto-updated.
Last update: 2024-11-25 08:54:02 UTC
README
This package provides the scrypt
key derivation function.
Installation
composer require kuyoto/scrypt
Usage
To derivate a key, use the following method:
echo bin2hex(Scrypt::calc('plain password', 'salt', 8, 8, 16, 32));
This function passes all the tests specified in the documentation.
Credits
License
The package is an open-sourced software licensed under the MIT License.