The previous SF questions I've seen have lead to answers that produce MD5 hashed password.
Does anyone have a suggestion on to produce an SHA-512 hashed password? I'd prefer a one liner instead of a script but, if a script is the only solution, that's fine as well.
man 5 shadowrefers to it as "encrypted password" so I went along with that term. – Beaming Mel-Bin Nov 11 '11 at 12:22/etc/shadowcontents. You'll see$x$salt$hash.xdenotes the algorithm used bycrypt, with6being typical on modern linuxes, which is sha512 (seeman 3 crypt). Either of the below answers will produce the same hash, so long as you give it the same salt. – SmallClanger Nov 11 '11 at 13:20