Hello list,

I'm working on a script that manages passwords in a database.

Does anyone see any benefits/downfalls [in]securities of using crypt() vs. an MD5 sum via Digest::MD5?

Like so:

if(crypt($mypass, $crypted_original_pass) eq $crypted_original_pass) {
...
vs.

use Digest::MD5 qw(md5_hex);
...
if(md5_hex($mypass) eq $md5_hex_of_original_pass) {
...


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to