[REVCMS] Change Password Hashing
Hello all,
Due to issues with the original RevCMS staff panel and me needing something diffrent I'm intergrating Radipanel into RevCMS and I decided that Radipanel's password hashing is better than RevCMS's So i wish to change RevCMS to have radipanel's hashing.
Here is radipanel's hashing:
Code:
public function encrypt( $string ) {
Code:
global $vars;
//let's md5 that salt and the string.
$salt1 = md5( $params['core']['salt1'] );
$salt2 = md5( $params['core']['salt2'] );
$string = md5( $string );
//stick them together.
$string = $salt1 . $salt1 . $salt2 . $string . $salt2 . $salt1;
//sha1 then md5 them again.
$string = sha1( $string );
$string = md5( $string );
return $string;
}
How would I change revcms's to be like that, current revcms's below:
Code:
final public function hashed($password) {
Code:
return md5($password);
}
Thanks for any help https://devbest.com/styles/default/x...lies/smile.png
Re: [REVCMS] Change Password Hashing
final public function hashed($password){
$salt1 = "GET THE SALT1 VALUE";
$salt2 = "GET THE SALT2 VALUE";
$password = md5($password);
$password = $salt1 . $salt2 . $password . $salt2 . $salt1;
$password = sha1($password);
$password = md5($password);
return $password;
}