Skip to content

Instantly share code, notes, and snippets.

@momo-lab
Created June 8, 2012 01:41
Show Gist options
  • Save momo-lab/2892901 to your computer and use it in GitHub Desktop.
Save momo-lab/2892901 to your computer and use it in GitHub Desktop.
# echo に -n オプションを付けないと改行が入ってしまい、正しくないハッシュ値になってしまう。
echo -n "password" | sha1sum - | tr a-z A-Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment