How does php implement java's sha1 encryption?
*Olin。2018-01-04 10:06:50
<?php
$str = "Shanghai";
echo "String: ".$str."<br>";
echo "TRUE - Raw 20-character binary format: ".sha1($str, TRUE)."<br>";
echo "FALSE - 40 character hexadecimal number: ".sha1($str)."<br>";
?>