Skip to main content Logo (IEC resistor symbol)logo

Quis custodiet ipsos custodes?
Home | About | All pages | RSS Feed | Gopher

OpenSSL - Generate Psuedo Random Passwords

Published: 26-07-2013 | Author: Remy van Elst | Text only version of this article

Table of Contents

This a snippet to generate a psuedo random password fast via the command linewith OpenSSL. It generates a number of random bytes, which can either be outputraw, as Base64 or as HEX. The Base64 output is a good password most of the time.

If you like this article, consider sponsoring me by trying out a Digital OceanVPS. With this link you'll get $100 credit for 60 days). (referral link)

# Base64openssl rand -base64 NUMBER# HEXopenssl rand -hex NUMBER


openssl rand -base64 48aqnZUEcnnkQVGaNmKOFBGlx+TScS5WCNaOlNEvTkluw0//g14ZOwTsjBkaDSYSq6openssl rand -base64 10c7UxZgREfmN+bQ==openssl rand -hex 488eb0d5eb8a45e4a4ac60b284d317383e91c9d372e3b67b154155c0a1b183c5deb2e5d6dceb6366704828c494951925d5openssl rand -hex 8feedfacedeadbeef
Tags: base64, hex, openssl, password, snippets, ssl