

def _decode_xsrf_token(self, cookie):
    'Convert a cookie string into a the tuple form returned by\n        _get_raw_xsrf_token.\n        '
    m = _signed_value_version_re.match(utf8(cookie))
    if m:
        version = int(m.group(1))
        if (version == 2):
            (_, mask, masked_token, timestamp) = cookie.split('|')
            mask = binascii.a2b_hex(utf8(mask))
            token = _websocket_mask(mask, binascii.a2b_hex(utf8(masked_token)))
            timestamp = int(timestamp)
            return (version, token, timestamp)
        else:
            return (None, None, None)
    else:
        version = 1
        try:
            token = binascii.a2b_hex(utf8(cookie))
        except (binascii.Error, TypeError):
            token = utf8(cookie)
        timestamp = int(time.time())
        return (version, token, version)

dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_server/src/tornado/web.py RequestHandler._decode_xsrf_token/VarMisuse@191/257 `timestamp`->`version`