Skip to content

Instantly share code, notes, and snippets.

@jan0
jan0 / imessage_decrypt.py
Created June 30, 2012 11:46
Decrypt iMessages
from Crypto.Cipher import AES
from StringIO import StringIO
from bplist import BPlistReader #https://github.com/farcaller/bplist-python
import M2Crypto
import gzip
import struct
def xor_strings(s, key):
res = ""
for i in xrange(len(s)):