多項式補間

DownUnderCTF 2021 | Subsutitution Cipher 2

#joseph #downunderctf2021 from string import ascii_lowercase, digits CHARSET = "DUCTF{}_!?'" + ascii_lowercase + digits n = len(CHARSET) def encrypt(msg, f): ct = '' for c in msg: ct += CHARSET[f.substitute(CHARSET.index(c))] return ct P.<x> </x>…