Advertisement
Guest User

Untitled

a guest
Apr 26th, 2013
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. test=0x1a6f2bec
  2. targets=[
  3. 0x12345678,
  4. 0x87654321,
  5. 0xbadfeed0,
  6. ]
  7. keys=[]
  8. print "IV:",hex(test)
  9. print "data:"
  10. for target in targets:
  11.     print hex(target)
  12. print "encoded:"
  13. for t in targets:
  14.     test=test^t
  15.     keys.append(test)
  16.     print hex(test)
  17. print "decoded:"
  18. test=0x1a6f2bec
  19. for key in keys:
  20.     test=test^key
  21.     print hex(test) # decodes first block
  22.     #print hex(test^key) # decodes second block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement