Quick OpenSSL Tip

here is how I create random passwords.

head -c 8 /dev/random > /tmp/xxx
openssl enc -base64 -in /tmp/xxx | head -c 8

is there a better way?

2 thoughts on “Quick OpenSSL Tip”

  1. Now uuidgen I didn’t know about.

    Interestingly although they both use /dev/random uuidgen seems to be heavier on the numbers while base64 encoding /dev/random is heavier on the letters.

Leave a Reply

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