PHP code example of nechin / smart-hash
1. Go to this page and download the library: Download nechin/smart-hash 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/ */
nechin / smart-hash example snippets
use Nechin\SmartHash\SmartHash;
SmartHash::hash('Hello World'); // 2d02b563447f954eafdc4824a190ddcc
SmartHash::hash('Hello World', 64); // 32b7b7d2408f9389d77cc00aff3c1529504508e86cdbc78a95c469fc68f80543
SmartHash::hash('Hello World', false, 'sha384'); // 99514329186b2f6ae4a1329e7ee6c610a729636335174ac6b740f9028396fcc803d0e93863a7c3d90f86beee782f4f3f