Files
CTF/HTB/challenges/crypto/BabyEncryption/chall.py
Simon 82b0759f1e init htb
old htb folders
2023-08-29 21:53:22 +02:00

16 lines
234 B
Python

import string
from secret import MSG
def encryption(msg):
ct = []
for char in msg:
ct.append((123 * char + 18) % 256)
return bytes(ct)
ct = encryption(MSG)
f = open('./msg.enc','w')
f.write(ct.hex())
f.close()