Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import binascii
- plaintext1 = map(ord, "zone-4-F7677DA8-3D77-11E2-BB65-E4BF6188709B")
- ciphertext1 = "20d916c6c29ee53c30ea1effc63b1c72147eb86b998a25c0cf1bf66939e8621b3132d83abb1683df619238"
- ciphertext1 = [int(''.join(c), 16) for c in zip(ciphertext1[0::2],ciphertext1[1::2])]
- key = [c[0]^c[1] for c in zip(plaintext1,ciphertext1)]
- ciphertext2 = "20d916c6c29ee54343e81ff1b14c1372650cbf19998f51b5c51bf66f49ec62184034a94fc9198fa9179849"
- ciphertext2 = [int(''.join(c), 16) for c in zip(ciphertext2[0::2],ciphertext2[1::2])]
- plaintext2 = ''.join(map(chr, [c[0]^c[1] for c in zip(ciphertext2,key)]))
- print plaintext2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement