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).
Try echo -n "password".
echo -n "password"
What's happening is the new line character(s) that echo adds to the end of the string are getting hashed. The -n to echo suppresses this behavior.
echo
-n
1.4m articles
1.4m replys
5 comments
57.0k users