From: Boris Z. <bz...@2b...> - 2004-04-20 16:03:07
|
Hi, I think the best way is to replace your crypt. At lest it should work the= n. perl -MCPAN -e 'install Crypt::UnixCrypt' then add this to your Common.pm use Crypt::UnixCrypt(); and replace all calls to crypt with Crypt::UnixCrypt::crypt how does that work? Am Dienstag, 20. April 2004 16:52 schrieb Net Drifter: > 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=A2 > http://photos.yahoo.com/ph/print_splash > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dc= lick > _______________________________________________ > Pagekit-users mailing list > Pag...@li... > https://lists.sourceforge.net/lists/listinfo/pagekit-users --=20 Boris |