My suse linux systems stores user password in MD5 format in /etc/shadow file. I want to change it to sha512.
Is there any command line tool available for that ?
My suse linux systems stores user password in MD5 format in /etc/shadow file. I want to change it to sha512.
Is there any command line tool available for that ?
I'm not sure the previous answer is actually what he's asking, it's not just that he wants to hash A password, it's changing the mechanism by default to a more secure one.
It's pretty ugly, you'll have to parse out the relevant sections from this VMWare posting....
Here's a one liner:
python -c 'import crypt; print crypt.crypt("test", "$6$random_salt")'
6 is the type of hash for SHA-512
Taken from : https://serverfault.com/questions/330069/how-to-create-an-sha-512-hashed-password-for-shadow