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?

This entry was posted in SysAdmin. Bookmark the permalink.

2 Responses to Quick OpenSSL Tip

  1. skugg says:

    How about: `uuidgen | md5sum | cut -c-12`

  2. huw says:

    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 *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>