greenmoss has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I'm trying to generate SHA512-hashed passwords for my Linux system, but my version of the hash-generating code isn't generating the correct hashes. They *look* correct, but they don't work when I try to log in.
Relevant code bits:
use Digest::SHA qw/sha512_base64/; $shadow = '$6$'.$salt.'$'.sha512_base64("$salt$root_pass");
What am I doing wrong?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hashed unix/shadow SHA512 passwords
by hobbs (Monk) on Jul 21, 2009 at 23:23 UTC | |
by greenmoss (Novice) on Apr 16, 2010 at 20:47 UTC |