View Single Post
Old 13.10.2006, 21:05   #8
Pole
Архивный участник
 
Join Date: Feb 2006
Posts: 10
Default

Quote:
Originally Posted by poltomb View Post
well, I took that encrypt password method right out of L2CP (php). I'll check to be sure I copied and pasted the right code.
yes, but the encrypt function of L2CP is bugged, wanna see ?

PHP Code:
$_new_passlength          = 8;                 // Length: of the random password
set_time_limit(900);
$i=1;
while(
$i<10000){
  
$i++;
  
$encrypt_pword = "";
  
$new_pword = random_password($_new_passlength);
  
$encrypt_pword = encrypt($new_pword);


  if (
strlen($encrypt_pword)!=34){
    echo(
"$i\t$new_pword\t");
    echo(
"$encrypt_pword\n");
  }
} 
Pole is offline