Last Updated: March 02, 2016
·
644
· Christoffer Niska

Generate a strong random string (Unix)

If you want to generate a strong random string for a password, secret or similar you can simply run the following command on the command line (assuming that you have openssl installed):

openssl rand -base64 32

Running the command outputs a string similar to this one (that at least I would consider strong enough):

FaJZLevvCAzmg8OEyG2Tl3saM+frUizFvxTE0yymUfE=

Source: http://www.howtogeek.com/howto/30184/10-ways-to-generate-a-random-password-from-the-command-line/