Cryptography, Cybersecurity, Cryptocurrency.
import sys import random import hashlib import math from Crypto.Util.number import getPrime from Crypto.Random import get_random_bytes primebits=64 if (len(sys.argv)>1): primebits=int(sys.argv[1]) p = getPrime(primebits, randfunc=get_random_bytes) g=3 while True: a = random.randint(0, p-1)