Skip to content

Instantly share code, notes, and snippets.

@Inquisitor-Sasha
Created February 2, 2014 05:18
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 Inquisitor-Sasha/8763418 to your computer and use it in GitHub Desktop.
Save Inquisitor-Sasha/8763418 to your computer and use it in GitHub Desktop.
SHA256 hash generator for PHP. Run from the command line: php hash.php <some value>
<?php
$text = $argv[1];
$br = '
';
$output = hash( sha256, $text );
echo $output, $br;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment