How to generate the SHA-512 hash with OpenSSL from command line without using a file?
I’ve tried this
echo "password" | openssl dgst -sha512
but the hash looks wrong (compared with http://hash.online-convert.com/sha512-generator).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try
echo -n "password".What’s happening is the new line character(s) that
echoadds to the end of the string are getting hashed. The-ntoechosuppresses this behavior.