Created
October 28, 2022 05:23
-
-
Save enishant/d83a230b85b8f772cc7051e9e00d8a49 to your computer and use it in GitHub Desktop.
Algos PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$string = 'Lorem Ipsum is simply dummied text of the printing and typesetting industry.'; | |
echo $algo . ' # ' . hash('sha256', $string) . '<hr>'; | |
foreach(hash_algos() as $algo) | |
{ | |
echo $algo . ' # ' . hash($algo, $string) . '<br>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment