剰余連立方程式を行列で解く

angstrom CTF 2021 | substitution

#angstromctf2021 #!/usr/bin/python from functools import reduce with open("flag", "r") as f: key = [ord(x) for x in f.read().strip()] def substitute(value): return (reduce(lambda x, y: x * value + y, key)) % 691 print("Enter a number and i…

ASIS CTF 2020 | Dead Drop 1

subset product problem 参考: https://www.sousse.love/post/deaddrop-asisctf2020/ #!/usr/bin/python from Crypto.Util.number import * import random from flag import flag p = 22883778425835100065427559392880895775739 flag_b = bin(bytes_to_lon…