Skip to content

Instantly share code, notes, and snippets.

@simonrjones
Created April 26, 2024 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonrjones/0be5deefc99bad52853be0c999af6668 to your computer and use it in GitHub Desktop.
Save simonrjones/0be5deefc99bad52853be0c999af6668 to your computer and use it in GitHub Desktop.
Output example hashed values from different hash algorithms
array_walk(hash_algos(), function($algo) {
echo $algo . ': ' . hash($algo, 'TEST123') . PHP_EOL;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment