2023-10-31 16:41:20 +08:00

14 lines
350 B
Python

import base64
flag = b"0xFA{tHis_iS_ba5e64_enCodinG}"
plain_text = b"Base64 is a group of binary-to-text encoding schemes that represent binary data. And flag is " + flag
cipher = base64.b64encode(plain_text)
plain_text = base64.b64decode(cipher)
print(cipher)
print(plain_text)
with open("cipher.txt","w") as f:
f.write(cipher.decode())