deemru / blake2b
BLAKE2 hash function on pure PHP
Installs: 16 696
Dependents: 7
Suggesters: 0
Security: 0
Stars: 6
Watchers: 4
Forks: 3
Open Issues: 0
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2024-10-29 05:50:17 UTC
README
Blake2b implements BLAKE2 hash function on pure PHP.
- Cryptographically compatible Blake2b
- If you have PHP >= 7.2 with Sodium, please use
sodium_crypto_generichash()
Usage
$blake2b = new Blake2b(); $hash = $blake2b->hash( 'Hello, world!' ); if( $hash !== hex2bin( 'b5da441cfe72ae042ef4d2b17742907f675de4da57462d4c3609c2e2ed755970' ) ) exit( 1 );
Requirements
- PHP >= 5.4
Installation
Require through Composer:
{ "require": { "deemru/blake2b": "1.0.*" } }