Comparing the output of md5 to that of sha1 : sha1 « Utility Function « PHP






Comparing the output of md5 to that of sha1

 
<?php
echo "Encrypting <b>testing</b> using md5: ".md5("testing");
echo "<br />";
echo "Encrypting <b>testing</b> using sha1: ".sha1("testing");
?>
  
  








Related examples in the same category

1.string sha1 ( string str [, bool raw_output] )
2.Generating a Unique Identifier