Skip to main content


Generate Random Password

With pwgen (generate 1 password, length 16, with a least a number and uppercase character)

pwgen -cns 16 1

Encrypt Password

With openssl (encrypt password from password.txt using SHA-512 and random salt)

openssl passwd -in password.txt -6
Paramter Description
-salt string use specified salt instead of random
-crypt encrypt with crypt algorithm (default)
-1 encrypt with MD5 algorithm
-5 encrypt with SHA-256-crypt algorithm
-6 encrypt with SHA-512-crypt algorithm