How does php implement java's sha1 encryption?
张启华
张启华 2017-12-22 23:42:22
0
2
1290

How does php implement java's sha1 encryption?

张启华
张启华

reply all(1)
*Olin。

<?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>";
?>

  • reply If you want to learn Java and python, you can scan the QR code to get the course. Ours is a public account owned by Silicon Valley. We have free practical project learning and source code as well as Java-related materials. Follow our official account and you can get it for free.
    author 2020-07-18 20:57:31
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template