Advertisement
Tenac451

Untitled

Apr 6th, 2020
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. c_hex = "73c1250112ac1ee90058ce0392b703324171c58466b05038e7ac"
  2. klartext_auftrag = b"PAY 00000123.45 EUR TO BOB"
  3. klartext_auftrag_neu = b"PAY 01000000.45 EUR TO EVA"
  4. i = 0
  5. erg = b''
  6. while i < len(klartext_auftrag):
  7. erg += bytes(format(klartext_auftrag_neu[i] ^ (klartext_auftrag[i] ^ int(c_hex[i*2:i*2+2], 16)),'x'), 'utf-8')
  8. i +=1
  9. print(erg)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement