Cryptography, Cybersecurity, Rsa.
sys bits=512 str=sys.argv[1] bits=int(str.split(";")[2]) p,q = random_prime(2**bits//2), random_prime(2**bits//2); p,q = max(p,q),min(p,q); N=p*q; ZZn = IntegerModRing(N) e = Integer(65537) r = (p-1)*(q-1) ZZr = IntegerModRing(r) m = ZZn.random_element() C=m^e # Create a hint