Quick and dirty random password generator
β’ 51 words β’ 1 min β’ updated
β οΈ This post is over one year old. It may no longer be up to date or relevant. Opinions may have changed.
On Linux / macOS, use /dev/urandom, with a tr pass-through filter:
shell
% tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 20 && echo
BLH1gVgdukdmTcvopOuCIn the example above only alphanumeric characters are allowed.
There are other popular ways to do so:
- Dice (Douglas Muth, EFF).
pwgen(viabrew home pwgen)