I have written this code below.
<?php $str = "hafeezullah"; echo "TRUE - Raw 20 character binary format: ".sha1($str, TRUE)."<br>"; ?>
I read the tutorials that if in the sha1 method TRUE(parameter) is passed then it generates 20 binary characters, but when I practically implemented it then it generated only 2 binary characters. What is the problem?
OUTPUT: TRUE - Raw 20 character binary format: �E
https://stackoverflow.com/questions/65895350/php-sha1-method-returns-only-2-binary-char January 26, 2021 at 11:04AM
没有评论:
发表评论