53 $chars = preg_split(
'//', $pPassword, -1, PREG_SPLIT_NO_EMPTY);
54 foreach ($chars as $char) {
55 $value = ord($char) << $charPos++;
56 $rotated_bits = $value >> 15;
58 $password ^= ($value | $rotated_bits);
61 $password ^= strlen($pPassword);
64 return(strtoupper(dechex($password)));
static hashPassword($pPassword='')
Create a password hash from a given string.