PHP code example of 189900 / wyhash
1. Go to this page and download the library: Download 189900/wyhash library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
189900 / wyhash example snippets
use N189900\Wyhash\Hasher;
$hash = Hasher::hash('payload bytes');
use N189900\Wyhash\Hasher;
$hasher = new Hasher('123'); // optional custom seed
$hash = $hasher->final('payload bytes');
use N189900\Wyhash\Hasher;
$hasher = new Hasher();
$hasher->update('first chunk');
$hasher->update('second chunk');
$hash = $hasher->final('optional closing chunk');