original_docstring: Generates the public and private keys.
  
      Param bits: int -- bit length for prime generation.
  
      Returns a tuple of tuples.
      
docstring: Generates the public and private keys.
  Param bits: int -- bit length for prime generation.
  
  Returns a tuple of tuples.
docstring_tokens: Generates the public and private keys . Param bits : int -- bit length for prime generation . Returns a tuple of tuples .
code: def gen(bits):
      """Generates the public and private keys.
  
      Param bits: int -- bit length for prime generation.
  
      Returns a tuple of tuples.
      """
      p, q = makePrimes(bits)
      tot = totient(p, q)
      n = makeN(p, q)
      PU = makePubKey(tot, n)
      print(f"public key is: {PU}")
      e, _ = PU
      PR = makePvtKey(e, tot, n)
      print(f"private key is: {PR}")
      return (PU, PR)
code_tokens: def gen ( bits ) : p , q = makePrimes ( bits ) tot = totient ( p , q ) n = makeN ( p , q ) PU = makePubKey ( tot , n ) print ( f"public key is: {PU}" ) e , _ = PU PR = makePvtKey ( e , tot , n ) print ( f"private key is: {PR}" ) return ( PU , PR )
short_docstring: Generates the public and private keys.
short_docstring_tokens: Generates the public and private keys .
comment: """Generates the public and private keys.
  
      Param bits: int -- bit length for prime generation.
  
      Returns a tuple of tuples.
      """