Generate Random Password Using Command-Line

28 Jun · by Tim Kamanin · 1 min read

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