The openssl passwd command can be used to compute password hashes.
openssl passwd examples
To compute the password hash without a salt, run the following command:
openssl passwd -crypt password
To compute a salted password hash, run the following command using the crypt algorithm (which happens to be the default):
openssl passwd -crypt -salt some_salt password
To use any other algorithm, substitute -crypt with that algorithm. Supported password hashing algorithms include the following:
- -1 (MD5 based BSD password algorithm 1)