Use md5 function to encrypt text : md5 « Login Authentication « PHP






Use md5 function to encrypt text

<?php
   $val = "secret";
   echo "Pre-hash string: $val <br />";
   $hash_val = md5 ($val);
   echo "Hashed outcome: $hash_val";
?>


           
       








Related examples in the same category

1.Get uniqid
2.md5 and uniqid