Skip to main content

Passwords

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
ParamterDescription
-salt stringuse specified salt instead of random
-cryptencrypt with crypt algorithm (default)
-1encrypt with MD5 algorithm
-5encrypt with SHA-256-crypt algorithm
-6encrypt with SHA-512-crypt algorithm