Generate Random Password Using Command-Line

Jun 28, 2017 · by Tim Kamanin

This approach doesn't need any additional libraries to be installed (at least on Mac or Linux), you just open your terminal and type:

openssl rand -base64 16 | colrm 17

And you'll get a 16 chars long random password generated by openssl.

Want to get more 🔥 tips like this one?

Subscribe to get notified about new dev tutorials