xxtea专题

xxtea加密算法-忘记是从哪里看到的了

xxtea.py #!/usr/bin/python# -*- coding:utf-8 -*-import structdef btea(v, n, k): #xxtea加密算法MX = lambda: ((z>>5)^(y<<2)) + ((y>>3)^(z<<4))^(sum^y) + (k[(p & 3)^e]^z)u32 = lambda x: x & 0xffffffffy = v