Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c_hex = "73c1250112ac1ee90058ce0392b703324171c58466b05038e7ac"
- klartext_auftrag = b"PAY 00000123.45 EUR TO BOB"
- klartext_auftrag_neu = b"PAY 01000000.45 EUR TO EVA"
- i = 0
- erg = b''
- while i < len(klartext_auftrag):
- erg += bytes(format(klartext_auftrag_neu[i] ^ (klartext_auftrag[i] ^ int(c_hex[i*2:i*2+2], 16)),'x'), 'utf-8')
- i +=1
- print(erg)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement