localhost ~ # 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
2008年3月19日 16:07 非必要的隐私信息,如银行账户之类的就不用了
2008年3月19日 17:40 可以写在脚本里,给批量的用户创建不同的密码
2008年3月19日 19:03 可是据说计算机是无法给出真正的随机数的
2008年3月19日 20:51 @platinum: 那肯定是伪随机数啦。其实通过特别方式还是可以得到真随机数的,看http://www.random.org/
2008年5月20日 22:13 我用python写过一个随即密码生成器,有兴趣可以去我的blog看