Easy way to generate random passwords

Home Forums Linux Easy way to generate random passwords

This topic contains 0 replies, has 1 voice, and was last updated by  Christian 3 years, 3 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1832

    Christian
    Participant

    This also works on the Mac, and other Unixes.

    openssl rand -base64 12

    The last part is the number of bytes, not characters, so you actually get 16 random characters. I usually remove the ‘+’ and ‘/’ characters since some programs won’t take them.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Comments are closed.