Generate Random Password Using Command-Line

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

1
  1. openssl rand -base64 16 | colrm 17

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