task.py from Cryptodome.Util.number import bytes_to_long, long_to_bytes from Cryptodome.Cipher import AES import hashlib import os import base64 from gmpy2 import is_prime FLAG = open("flag").read() FLAG += (16 - (len(FLAG) % 16))*" " class Rng: def __init__(self, seed): self.seed = seed self.generated = b"" self.num = 0 def more_bytes(self): self.generated += hashlib.sha256(self.seed).digest() ..