def gen_pubpriv_keys(nbits):
    
    (p, q, e, d) = gen_keys(nbits)

    return ( {'e': e, 'n': p*q}, {'d': d, 'p': p, 'q': q} )
Generates public and private keys, and returns them as (pub,
dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/rsa/_version133.py/gen_pubpriv_keys