Good random password generation

I’m in the process of moving this blog, and in doing so, needed to generate a good random password for a MySQL account. This is the command I used on my Mac (using the terminal). Replace the ’10’ with the length you want!


dd if=/dev/random count=1 bs=2k 2>/dev/null | uuencode -m - | sed -ne 2p | cut -b-10

And here’s what it looks like when you run it:
terrance:~ vijayp$ dd if=/dev/random count=1 bs=2k 2> /dev/null | uuencode -m - | sed -ne 2p | cut -b-10

11B7GTfk7b
And no, I didn’t use that password!


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *