Liebe CLS-Design Community,
ich habe eine WBB3-Bridge die ich weitesgehend angepasst habe bis auf den return string zur Passwortverschlüsselung.
PHP
/**
* Encrypt the password with a specific algorithm
* @return String
*/
private function encryptPassword($salt)
{
return $salt($salt($this->password, $salt), $salt);
/*return sha1($salt.sha1($salt.sha1($this->password)));*/
/*return self::getSaltedHash(self::getSaltedHash($password, $salt), $salt);*/
}
/**
* Generates a random set of number and characters
* @return String
*/
private function random_str($max = 8)
{
$chars = explode(" ", "A a B b C c D d E e F f G g H h I i J j K k L l M m N n O o P p Q q R r S s T t U u V v W w X x Y y Z z 1 2 3 4 5 6 7 8 9");
$rtn = '';
for($i = 0; $i < $max; $i++)
{
$rtn .= str_replace('=', '', base64_encode(md5($chars[array_rand($chars)])));
}
return substr(str_shuffle($rtn), 0, $max);
}
}
Alles anzeigen
Kann mir jemand den String in Zeile 7 an die neue Verschlüsselung anpassen?
https://github.com/WoltLab/WCF…sswordUtil.class.php#L179
Liebe Grüße