Skip to content

Instantly share code, notes, and snippets.

@enishant
Created October 28, 2022 05:23
Show Gist options
  • Save enishant/d83a230b85b8f772cc7051e9e00d8a49 to your computer and use it in GitHub Desktop.
Save enishant/d83a230b85b8f772cc7051e9e00d8a49 to your computer and use it in GitHub Desktop.
Algos PHP
<?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