Advertisement
Guest User

Untitled

a guest
Aug 8th, 2017
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. def str2num(m):
  2. return int(m.encode('hex'),16)
  3.  
  4. def num2str(n):
  5. d = ('%x' % n)
  6. if len(d) % 2 == 1:
  7. d = '0' + d
  8. return d.decode('hex')
  9.  
  10. v8 = 7523094288207667809
  11. v9 = 8101815670912281193
  12. v10 = 8680537053616894577
  13. v11 = 3833745473465776761
  14. v12 = 959985462
  15. v13 = 24929
  16. v2 = 6508264540403273223
  17. v3 = 5213490578399759196
  18. v4 = 5409190721146722066
  19. v5 = 73472674227045146
  20. v6 = 202114575
  21. v7 = 7173
  22. data1 = [v2,v3,v4,v5,v6,v7]
  23. data2 = [v8,v9,v10,v11,v12,v13]
  24. v1 = ''
  25. for i , j in zip( data1,data2 ):
  26. char = num2str( i ^ j )
  27. v1+= char[::-1]
  28. print v1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement