from utils import generate_secret, coin_toss from utils import prime, FILE from Crypto.Math.Numbers import Integer g = Integer(2) b = generate_secret() B_secret = pow(g, Integer.from_bytes(b), prime) if coin_toss(): with open(FILE, 'r') as f: A_secret = f.read() B_secret = A_secret * B_secret print('siup') print(B_secret)