53 $chars = preg_split(
'//', $pPassword, -1, PREG_SPLIT_NO_EMPTY);
54 foreach ($chars as $char) {
55 $value = ord($char) << $i;
56 $rotated_bits = $value >> 15;
58 $password ^= ($value | $rotated_bits);
62 $password ^= strlen($pPassword);
65 return(strtoupper(dechex($password)));