Created
March 2, 2014 09:58
-
-
Save kenji0x02/9304331 to your computer and use it in GitHub Desktop.
rubyでパスワード生成。アスタリスクで配列を生成して、sampleでランダムに取り出すw
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
ruby -e "p [*1..9, *'a'..'z'].sample(12).join" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cat /dev/urandom | tr -dc 'a-z0-9' | head -c 12
でもいいかな。