2014年8月9日土曜日

Linuxでパスワード生成コマンド「pwgen」

Linuxでパスワード生成コマンド「pwgen」です。覚えにくいパスワードの羅列が、なんとも素晴らしいです(笑)。apgより好みかも?

インストール
sudo apt-get install pwgen
ヘルプ
pwgen -help
Usage: pwgen [ OPTIONS ] [ pw_length ] [ num_pw ]

Options supported by pwgen:
  -c or --capitalize
        Include at least one capital letter in the password
  -A or --no-capitalize
        Don't include capital letters in the password
  -n or --numerals
        Include at least one number in the password
  -0 or --no-numerals
        Don't include numbers in the password
  -y or --symbols
        Include at least one special symbol in the password
  -s or --secure
        Generate completely random passwords
  -B or --ambiguous
        Don't include ambiguous characters in the password
  -h or --help
        Print a help message
  -H or --sha1=path/to/file[#seed]
        Use sha1 hash of given file as a (not so) random generator
  -C
        Print the generated passwords in columns
  -1
        Don't print the generated passwords in columns
  -v or --no-vowels
        Do not use any vowels so as to avoid accidental nasty words
実際に利用してみた感じ
pwgen -y -n -s -v
LM7?hV,] 5T*^l+&? 7c$\2[NB 9](,X,K" T@Ljd4$" x%{H-NJ2 mGK6~:X$ |+T'Qs6!
hgHl4-R] %:J=*7lq {]r[9Z"B ~9dnq6sX 3_/"x`H- b9<{'S._ ~bD5P=b+ 6=`g9V\&
N47?q8{( /qSlc,X4 57jGMp(x c2&2rv9R 4G>x3QS" !~sN:5ds \4kxl{"B nd7F=Z@]
\4FfmX&J R-87X&j[ zH-5Z*\` *^;Hn5kv P5;L4t%; k4=Jb2x. Jw[Z5vG_ NjwN;#5M
@8h'k(,G kxN|7D.x {|?Z>l.9 "N5qqJT$ BvXj.F7} ns^B4g!2 5pHS:$6q VlLk$p9?
jj5)PL7> C%6wtcLV !&8d?_S$ 8fK5{`@5 Hdb7fC(g VS|v3==` HDS2p$Dq 5'K(%|+-
6r6`+wW| w;x?\rL6 gKFv4q$^ lQq&4\Z) 2\nTJhT= KwtP5~#+ dFdrM@9S f^x2np\V
:R94RP,X ?cQrt;2x !VgM5Ws4 /"9f4_mP 2:gWtxK= g'"t5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