I need to create passwords on the fly from a script.
Unfortunately I cannot use applications that utilize /dev/urandom because of the time it takes to create the password.
Are there other applications that I can use to create passwords on the fly?
|
show 2 more comments
feedback
|
|
Apparently this answer worked:
... takes about .01 seconds. | |||
|
feedback
|
|
The apg tool is kinda dated but still good for password generation. It supports sizing the passwords, password checking with dictionaries, generation of pronounceable or random passwords, has a built-in PRNG and Examples:
Generate only one with no delimiter:
Spell the generated passwords:
| |||
|
feedback
|
|
You may try 'pwgen' (available in Ubuntu/Debian/Gentoo etc.) Generate a 10 char password:
Generate a more secure 10 char password:
Generate a 'really' secure 10 char password:
Hope this helps, Cheers | |||
|
feedback
|
| |||||||
feedback
|
|
The following generates a unique 8 lower and upper character password:
| |||
|
feedback
|
/dev/urandom. Unless they use/dev/random, which is even slower. – Ignacio Vazquez-Abrams Apr 18 '11 at 22:43swordfisheverywhere. If you do need the passwords to be random,/dev/urandomis as fast as it gets (unlike/dev/randomwhich may block). – Gilles Apr 18 '11 at 23:12/dev/urandomis too slow? – Puddingfox Apr 18 '11 at 23:17cat /dev/urandom | tr -dc 'a-zA-Z0-9-_!@#$%^&*()_+{}|:<>?=' | fold -w 12 | head -n 4takes about .01 seconds... If you need something faster, you will probably need to write your own program. – Hyppy Apr 19 '11 at 1:15cat /dev/urandom. If it's REALLY slow, and pauses when you don't move the mouse for a while, it's probably using /dev/random for some reason – Hyppy Apr 19 '11 at 3:28