Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 762 Bytes

README.md

File metadata and controls

33 lines (17 loc) · 762 Bytes

RSA Encryption

A Python script for RSA encryption and decryption. Supports signing and verifying.

Create Keys

Usage: <class name>.CREATE_KEYS() CREATE_KEYS returns a tuple, that contains 2 lists: the private key pair, and the public key pair.

Encryption

Usage: <class name>.ENCRYPT(<plaintext>,<key>)

ENCRYPT returns the encrypted version of the text.

Decryption

Usage: <class name>.DECRYPT(<ciphertext>, <key>)

DECRYPT returns the decrypted ciphertext.

Signing

Usage: <class name>.SIGN(<plaintext>, <key>)

SIGN returns the text, and a signature.

Verifying

Usage: <class name>.VERFIY(<plaintext>, <signature>, <key>)

VERIFY returns True if the message was verified, otherwise it returns False.