Re: Bug #12745: problem with the randomic generation of salt when a use crypt("pass")

From: Date: Wed, 15 Aug 2001 12:31:41 +0000
Subject: Re: Bug #12745: problem with the randomic generation of salt when a use crypt("pass")
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-63276@lists.php.net to get a copy of this message
der.... I supose that is must not work.... but works, did you tested ? ----- Original Message ----- From: "PHP Bug Database" <php-dev@lists.php.net> To: <marcus@marcusvinicius.f2s.com> Sent: Tuesday, August 14, 2001 8:40 PM Subject: Bug #12745: problem with the randomic generation of salt when a use crypt("pass") > From: marcus@marcusvinicius.f2s.com > Operating system: Linux Slackware 7.1 > PHP version: 4.0.6 > PHP Bug Type: *Encryption and hash functions > Bug description: problem with the randomic generation of salt when a use crypt("pass") > > problem with the randomic generation of salt when a use $string = > crypt("11lei11lao11") it allways generates a salt ( the first 2 chars from > encrypted string ) that if use crypt("11lei11lao11blablabla") would work, > and also crypt("11lei11lao11anythingwouldworkhere"). > > the code is > > $cryptedpass = crypt("11lei11lao11"); > if (crypt ( "11lei11lao11anythingwouldworkhere", substr ( $cryptedpass, 0, > 2)) == $cryptedpass) { > echo "this is extremely strange for me"; > } > > and this works with this pass but not whit others!!!!!!!!!!!!!!!!! > -- > Edit bug report at: http://bugs.php.net/?id=12745&edit=1 >

« previous php.dev (#63276) next »