A Python
script for RSA encryption and decryption. Supports signing
and verifying
.
Usage: <class name>.CREATE_KEYS()
CREATE_KEYS
returns a tuple, that contains 2 lists: the private key pair, and the public key pair.
Usage: <class name>.ENCRYPT(<plaintext>,<key>)
ENCRYPT
returns the encrypted version of the text.
Usage: <class name>.DECRYPT(<ciphertext>, <key>)
DECRYPT
returns the decrypted ciphertext.
Usage: <class name>.SIGN(<plaintext>, <key>)
SIGN
returns the text, and a signature.
Usage: <class name>.VERFIY(<plaintext>, <signature>, <key>)
VERIFY
returns True
if the message was verified, otherwise it returns False
.