securefile.rsa_algorithm.RSA.encrypt

securefile.rsa_algorithm.RSA.encrypt(pk, plaintext)

decrypt() do basic RSA encryption algoritm to make ciphertext

Parameters:
  • pk (tuple) – RSA Private Key as tuple
  • ciphertext (int) – Plain Text
Returns:

list integer array of encrypted text

Raises:

None