This Python project demonstrates RSA key generation, encryption, and decryption. It includes a simple menu-driven command-line interface for generating keys, encrypting messages, and decrypting messages.
-
Clone the repository:
git clone https://codeberg.org/hecdelatorre/Python-RSA-Test.git
-
Create a virtual environment:
python3 -m venv env
-
Activate the virtual environment:
. env/bin/activate
-
Install the required dependencies:
pip install -r requirements.txt
Run the main script using the following command:
python main.py
-
Generate Keys: Generates RSA public and private keys. You will be prompted to choose the key size.
-
Encrypt Message: Encrypts a user-entered message using the generated public key.
-
Decrypt Message: Decrypts the previously encrypted message using the generated private key.
e. Exit: Exits the program.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.