Generating Random Passwords (in Linux)

I needed a way to generate a list of passwords for use at home and at work -- this article shows a simple way of accomplishing that task.

Source Article:
Password Generator (Linux How-To's)

I will only showcase the approach I used to create a list of 10 (or name your count) passwords, while the original article demonstrates other methods.

I'll be assuming the reader is a regular Linux user, like me...

At a Linux prompt, enter the following command (and press )

  % for ((n=0;n<10;n++)); do dd if=/dev/urandom count=1 2> /dev/null | uuencode -m -| sed -ne 2p | cut -c-8; done 
  

The results should look similar to what's below:

    rSQpeNNr
    PesAIgAb
    GUEgoUwT
    U3p+kfqa
    WSgSwgq6
    +9aGihvl
    dYfcaV3b
    guFtI7eZ
    +kzKuW0f 
    jJpW/8yO