Passwd
[OpenSSL Home][Home]
In this case we generate hashed passwords in different formats. The methods are implemented with OpenSSL, and include SHA512, SHA256, and APR1.
|
Outline
For example for "hello" and a SHA512 hash:
c:\python3>openssl passwd -6 hello $6$/TEnLJIbAD9EKVuq$CTglWjMKc456oPUvFsGOX62fB4Y3OBvV95gULkspJevhqTznmPrdCGmBa7e.lzSiezlHAv.ajbRaB2yIL7knp.
In this case the salt value is "/TEnLJIbAD9EKVuq" and the hashed value is "CTglWjMKc456oPUvFsGOX62fB4Y3OBvV ... zSiezlHAv.ajbRaB2yIL7knp."
The salt value is "/TEnLJIbAD9EKVuq" and the hash is "CTglWjMKc456oPUvFsGOX62fB4Y3OBvV95gULkspJevhqTznmPrdCGmBa7e.lzSiezlHAv.ajbRaB2yIL7knp.". Let's check:
% openssl passwd -6 -salt /TEnLJIbAD9EKVuq hello $6$/TEnLJIbAD9EKVuq$CTglWjMKc456oPUvFsGOX62fB4Y3OBvV95gULkspJevhqTznmPrdCGmBa7e.lzSiezlHAv.ajbRaB2yIL7knp.
Let's hash "hello"
openssl passwd -1 Hello Word: Hello Method: -1 $1$eNBETNtj$ZDPaPINYCoOUqk4zh8Ior/
and now check:
% openssl passwd -1 -salt eNBETNtj Hello $1$eNBETNtj$ZDPaPINYCoOUqk4zh8Ior/