original_docstring: Encrypting the message with private key
  
      :param keypair: private key
      :param to_encrypt: message to encrypt
      :return: the encrypted message as a list of numbers
      
docstring: Encrypting the message with private key
docstring_tokens: Encrypting the message with private key
code: def encrypt(keypair: Tuple[int, int], to_encrypt: str) -> list:
      """Encrypting the message with private key
  
      :param keypair: private key
      :param to_encrypt: message to encrypt
      :return: the encrypted message as a list of numbers
      """
      pk, n = keypair
  
      # encrypting with nb = c^pk % n
      return [pow(ord(c), pk, n) for c in to_encrypt]
code_tokens: def encrypt ( keypair : Tuple [ int , int ] , to_encrypt : str ) -> list : pk , n = keypair return [ pow ( ord ( c ) , pk , n ) for c in to_encrypt ]
short_docstring: Encrypting the message with private key
short_docstring_tokens: Encrypting the message with private key
comment: """Encrypting the message with private key
  
      :param keypair: private key
      :param to_encrypt: message to encrypt
      :return: the encrypted message as a list of numbers
      """$SEP$# encrypting with nb = c^pk % n