Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (4) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2021-01-23 (1 month ago) | Not yet rated by the users | Total: 24 This week: 1 | All time: 10,162 This week: 352 |
Version | License | PHP version | Categories | |||
blake3 1.0.0 | The PHP License | 5 | PHP 5, Cryptography |
Description | Author | ||||||||||||||||
This class can generate hashes of data using the Blake2 algorithm. Innovation Award
|
|
PHP Blake3 hash,keyed_hash,derive_key,XOF PHP implementation of BLAKE3
https://github.com/BLAKE3-team/BLAKE3-specs/blob/master/blake3.pdf
https://github.com/BLAKE3-team/BLAKE3
It supports HASH, KEYED and DERIVE modes with XOF output
There is a python version https://github.com/oconnor663/bao
which is 2.5x slower than this implementation in generating the hash
This implementation have been checked with the test vectors provided
https://raw.githubusercontent.com/BLAKE3-team/BLAKE3/master/test_vectors/test_vectors.json
By default, XOF output are 32 bytes
Examples of use:
HASH MODE
$b2 = new BLAKE3();
$hash = $b2->hash($h,$xof_length);
KEYED HASH
$b2 = new BLAKE3($key);
$keyed_hash = $b2->hash($h,$xof_length);
DERIVE KEY
$b2 = new BLAKE3();
$derive_key = $b2->derivekey($context_key,$context,$xof_length);
@denobisipsis 2021
Files |
File | Role | Description |
---|---|---|
blake3.php | Class | Class source |
blake3.zep | Class | Class source |
blake3_optimized.php | Class | Class source |
README.md | Doc. | Documentation |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.