[PHP-DEV] Bug #12745 Updated: problem with the randomic generation of salt when a use crypt("pass")

2001-08-18 Thread sniper

ID: 12745
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Bogus
Bug Type: *Encryption and hash functions
Operating System: Linux Slackware 7.1
PHP Version: 4.0.6
New Comment:

No feedback and this is not a bug.
This is how DES encryption works.

--Jani


Previous Comments:


[2001-08-15 03:25:45] [EMAIL PROTECTED]

So what is the 'bug' here??

--Jani




[2001-08-14 19:40:26] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=12745&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12745 Updated: problem with the randomic generation of salt when a use crypt("pass")

2001-08-15 Thread sniper

ID: 12745
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: *Encryption and hash functions
Operating System: Linux Slackware 7.1
PHP Version: 4.0.6
New Comment:

So what is the 'bug' here??

--Jani


Previous Comments:


[2001-08-14 19:40:26] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=12745&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]