= 0; $i--) $ret |= ord($res[$i]); return !$ret; } } } /** * Compatibility function with legacy resourse * @param int $length * @return string|false * @throws Exception */ function token($length = 32) { return Token::token($length); } if (!function_exists('hash_equals')) { /** * Compatibility function with legacy resourse * @param string $known_string * @param string $user_string * @return bool */ function hash_equals($known_string, $user_string) { return Token::hash_equals($known_string, $user_string); } }