生成AES秘钥规则

酒店AppId:b5d0769c550d4f6699c8ecbd668f8132

1.对AppId取MD5:41B35B7B1EC2207533E59E391D39E3B8(大写) md5生成摘要,固定长度32,范围为0-9,A-F

2.将摘要信息 前8个字节后8个字节异或 41 B3 5B 7B 1E C2 20 75 33 E5 9E 39 1D 39 E3 B8 41 ^ 33 = 72 B3 ^ E5 = 56 5B ^ 9E = C5 7B ^ 39 = 42 1E ^ 1D = 03 C2 ^ 39 = FB 20 ^ E3 = C3 75^ B8= CD 得:7256C54203FBC3CD

3.将摘要信息截取12~20 得:207533E5

4.将7256C54203FBC3CD 第2 4 6 8 个字节与 207533E5异或 56 ^ 20 = 76 42 ^ 75 = 37 FB ^ 33 = C8 CD ^ E5 = 28 得:7637C828

5.7637C828替换7256C54203FBC3CD的第 1 3 5 7个字节 72 56 C5 42 03 FB C3 CD 76 37 C8 28 得AES秘钥:76563742C8FB28CD