def unmake(self, st):
p = st.split(".")
if len(p) != 2:
return None
s = self.decode(p[1].decode('hex'))
if s == None:
return None
h = SHA.new()
h.update(self.mac_key)
h.update(s)
f = h.hexdigest()
print s
if p[0] != f:
return None
kv = urlparse.parse_qsl(s)
ret ={}
for k, v in kv:
ret[k] = v
return ret
评论列表
文章目录