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, 8 months ago.
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.
You must be logged in to reply to this topic.
Comments are closed.
Enjoy Sound Bytes? Please help keep this site alive!