snailweb / php-hasher
There is no license information available for the latest version (1.0.2) of this package.
A simple PHP Hasher
1.0.2
2019-03-06 19:05 UTC
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2025-06-09 16:57:00 UTC
README
A simple PHP Hasher to ensure data validity received from a client.
Usage
Instantiation
$hasher = new Snailweb\Utils\Hasher('secret key', 'secret prefix', 'secret suffix', 'sha256');
Hash data to send
$hasher->hash('my data');
Check data validity of received data
$hasher->checkSum($receivedHash, $receivedData);