MD5 password fix
authorindvdum (gotoindvdum[at]gmail[dot]com)
Wed, 07 Mar 2012 23:05:50 +0400
changeset 58b13f18d7412
parent 4 e9e194e102a1
child 6 40f90a92f114
MD5 password fix
includes/functions.php
     1.1 --- a/includes/functions.php	Wed Mar 07 23:05:07 2012 +0400
     1.2 +++ b/includes/functions.php	Wed Mar 07 23:05:50 2012 +0400
     1.3 @@ -432,6 +432,7 @@
     1.4  */
     1.5  function phpbb_hash($password)
     1.6  {
     1.7 +	/*
     1.8  	$itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
     1.9  
    1.10  	$random_state = unique_id();
    1.11 @@ -462,6 +463,7 @@
    1.12  	{
    1.13  		return $hash;
    1.14  	}
    1.15 +	*/
    1.16  
    1.17  	return md5($password);
    1.18  }
    1.19 @@ -476,11 +478,13 @@
    1.20  */
    1.21  function phpbb_check_hash($password, $hash)
    1.22  {
    1.23 +	/*
    1.24  	$itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
    1.25  	if (strlen($hash) == 34)
    1.26  	{
    1.27  		return (_hash_crypt_private($password, $hash, $itoa64) === $hash) ? true : false;
    1.28  	}
    1.29 +	*/
    1.30  
    1.31  	return (md5($password) === $hash) ? true : false;
    1.32  }
    1.33 @@ -4855,4 +4859,4 @@
    1.34  	return;
    1.35  }
    1.36  
    1.37 -?>
    1.38 \ No newline at end of file
    1.39 +?>