Hello all, 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:
How would I change revcms's to be like that, current revcms's below:
@Sledmore ?
Thanks for any help
Here is radipanel's hashing:
Code:
public function encrypt( $string ) {
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) {
return md5($password);
}
@Sledmore ?
Thanks for any help