hecdelatorre / python-rsa-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-rsa-test

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.

Installation

  1. Clone the repository:

    git clone https://codeberg.org/hecdelatorre/Python-RSA-Test.git
  2. Create a virtual environment:

    python3 -m venv env
  3. Activate the virtual environment:

    . env/bin/activate
  4. Install the required dependencies:

    pip install -r requirements.txt

Usage

Run the main script using the following command:

python main.py

Menu Options

  1. Generate Keys: Generates RSA public and private keys. You will be prompted to choose the key size.

  2. Encrypt Message: Encrypts a user-entered message using the generated public key.

  3. Decrypt Message: Decrypts the previously encrypted message using the generated private key.

e. Exit: Exits the program.

GPL 3 License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

About

License:GNU General Public License v3.0


Languages

Language:Python 100.0%