matsumoto_imai_cryptosystem

DownUnderCTF 2021 | Subsutitution Cipher 3

#joseph #downunderctf2021 #good_challenges_2021 def encrypt(pubkey, msg): gens = pubkey[0].parent().gens() n = len(gens) B = ''.join(f'{c:08b}' for c in msg) B = list(map(int, B)) assert len(B) <= n B += [0] * (n - len(B)) subs = { x: b fo…

カテゴリ一覧