PHP code example of kaihempel / simplehash

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

    

kaihempel / simplehash example snippets


  // 7a9eec69d1a8669857169fd357abece5
  $hashMd5 = Hash::Md5('TEST_MD5');

  // 3176e209d14330f16662eb9986d64062648b68f2
  $hashSHA1 = Hash::Sha1('TEST_SHA1');

  // $2y$10$Af13GgKoL503sCvf42dJ1uRdAbA9eaFajPkCIQ0mvpi.LAYCAILs.
  $hashBcrypt = Hash::Bcrypt('TEST_BCRYPT', 10, 'AbCdEfGhJkLmNoPQrStUv');

  if ($hashMd5 == "7a9eec69d1a8669857169fd357abece5") // true