mhash.php : mhash « Utility Function « PHP






mhash.php

 
<?php
   $userpswd = "mysecretpswd";
   $pswdhash = mhash(MHASH_SHA1, $userpswd);
   echo "The hashed password is: ".bin2hex($pswdhash);
?>
  
  








Related examples in the same category

1.MD5 by way of the mhash extension