BabyEncryption - HTB - Challenges
November 15, 2022•71 words
import string
#from secret import MSG
#ct = encryption(MSG)
f = open('./msg.enc','r')
text = bytes.fromhex(f.readline())
result = ""
alphabet = string.printable
for char in text:
for letter in alphabet:
if((123 * ord(letter) + 18 ) % 256 == char):
result += letter
print(result)