| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 46 | All time:  10,798 This week: 35  | ||||
| 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 (4) | 
| File | Role | Description | 
|---|---|---|
|  blake3.php | Class | Class source | 
|  blake3.zep | Class | Class source | 
|  blake3_optimized.php | Class | Class source | 
|    README.md | Doc. | Documentation | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
| 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.
 If you know an application of this package, send a message to the author to add a link here.