PHP code example of snailweb / php-hasher

1. Go to this page and download the library: Download snailweb/php-hasher 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/ */

    

snailweb / php-hasher example snippets


$hasher = new Snailweb\Utils\Hasher('secret key', 'secret prefix', 'secret suffix', 'sha256');

$hasher->hash('my data');

$hasher->checkSum($receivedHash, $receivedData);