Main Menu

Search

LINUX: How to Generate Hashed / Encrypted Passwords Using OpenSSL?

Below are commands to generate hashed / encrypted passwords using openSSL.

Generate MD5 password

openssl passwd -1 <password>

Generate SHA-256 password

openssl passwd -5 <password>

Generate SHA-512 password

openssl passwd -6 <password>


For e.g. for SHA-512 password, below is the snippet.

# openssl passwd -6 testing
$6$ENjdcvpGRHDEfXCE$ilnuHaz5VHdeAH.Y5eRDhL3ptR6WGXtfV1KfRltnMIiThqgF.615HO.ugPwqSozlaBaV29iGyI812L9TjzreW1



Keywords

passwords password encrypt encrypting hash hashing hashed algorithm algorithms securities security generating create creating ssl

No comments:

Post a Comment