crypted password digests have the salt tacked onto the front in plain text, like this:
All you need to do is capture the salt with my $salt = substr $digest, 0, 2; , then crypt away.$ perl -e'print crypt("glaummer", "es"), $/' esWBuiGT4AQcA $
Update: Fixed typo in code (s/crupt/crypt/) ++rob_au for the spot.
After Compline,
Zaxo
In reply to Re: Tales from the crypt()
by Zaxo
in thread Tales from the crypt()
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |