天天看點

微信圖檔dat轉碼(初稿)

#微信圖檔轉碼
#檔案讀
f = open('750fd6eb26111238efb42714f31a85f3.dat','rb')
# print(r)
#檔案寫
p = open('aa.jpg','wb')
# 轉碼過程
for now in f:
    # print(now)
    for nowByte in now:
        print(nowByte)
        newByte = nowByte ^ 0x1e
        print(newByte)
        p.write(bytes([newByte]))
           

0x1e 異或值

後續整理