Skip to main content

using /dev/urandom for something useful

Posted in
Currently Listening To: 
"Suite Pee" by System of a Down

I saw Germ's earlier post about using /dev/urandom to make a big text file and I was wondering if I could use the same command for something useful like generate passwords. I asked in the #lugradio channel on the Freenode IRC server and I was told that if I use the fallowing command to make passwords.

Mez created a bash script using urandom to make passwords.

To install it use the following commands

cd /usr/bin

sudo wget http://slightlyunstable.org/files/genpwd

sudo chmod +x genpwd

Now whenever you want a password you just type in

genpwd [length]

Thanks a ton, Mez

Digg this story

Thanks for the tip! I try

Thanks for the tip! I try and change my passwords every so often and it is hard to totally generate a random one off the top of my head. I feel like I tend to use the same keys too often and since I do a lot of personal banking on my PC this is not good.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <i> <img> <embed> <object> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <embed> <i> <br> <p>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.