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 /dev/random support and can generate various passwords on a bunch or on a shell script.
Examples:
# apg -c random_seed
dordififId
riHegyipju
Noafrathvu
IchJinCet
utadwulb
ethFench
#Chars allowed in password (I don't like l,o,O, etc):
P="0123456789ABCDEFGHIJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz"
#Or such:
#P="a-zA-Z0-9"
#The string pasted as $P$P$P... must be at least 256 chars long.
head -c 8 < /dev/urandom | tr '\000-\377' "$P$P$P$P$P"
echo
Apparently this answer worked:
... takes about .01 seconds.
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
/dev/random
support and can generate various passwords on a bunch or on a shell script.Examples:
Generate only one with no delimiter:
Spell the generated passwords:
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
The following generates a unique 8 lower and upper character password:
openssl rand -base64 6
If you're creating a password a human should remember, pick a few random words from a dictionary:
$ uniq < /usr/share/dict/words | shuf | head -n 4 | tr '\n' ' ' reinitialise content snug dimly
Relevant XKCD strip