From: Net D. <net...@ya...> - 2004-04-20 14:52:29
|
I have confirmed that crypt is different between Perl 5.6.1/Red Hat 7.3 and 5.8.2/FreeBSD 4.9. On the first machine, the result of crypt($pw, $salt) is 13 characters. On the second machine it is 60 characters. On the first machine, crypt($pw, $salt) always returns the same 13 characters when $pw and $salt are the same. On the second machine, the results returned are inconsistent. With the same $pw and $salt, I get these from pkit_auth_session_key during the same session when it runs twice: $2a$04$ckHfa0S0L./OXVHqV1L0VujdmXqfipazVvUew/Jt29uGnQTWwV9Sy $2a$04$cea.............Uea.....R.GynHj/llZIZ1szq0oYjqLQDLdu6 It is always these two different results (no other results) and I have confirmed crypt is being run on the same $pw and $salt. And when I run a small perl script from the command line on the exact same $pw and $salt, I consistently get this: $2a$04$cruDI.................SzCJIRyFISM5TRNUxw8.9jSG3RGGt6G Three different answers for the same $pw and $salt. David __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash |