Go to file
Vicky Steeves 5b7329dc79 add script and info for RSA encrypt/decrypt 2021-11-22 15:20:51 -05:00
.gitignore add script and info for RSA encrypt/decrypt 2021-11-22 15:20:51 -05:00
LICENSE add script and info for RSA encrypt/decrypt 2021-11-22 15:20:51 -05:00
README.md add script and info for RSA encrypt/decrypt 2021-11-22 15:20:51 -05:00
index.py add script and info for RSA encrypt/decrypt 2021-11-22 15:20:51 -05:00

README.md

2021 CSCI-GA3205 Homework 11

Author: Vicky Rampin

Prompt

Write a program to encrypt and decrypt a message (string) using the RSA algorithm. You can implement the functions you need or use the libraries.

Installation

This script is made with Python 3.8 and uses the argparse and pycryptodome libraries. Ensure that you have Python 3.8+ and these libraries installed in order to run this script correctly.

Usage

First, clone this repository to your machine. Open the command line on your machine and navigate to where you cloned this repository. To get help using cd, use this tutorial.

Before running the script, you should know it expects one argument:

  1. --msg: provide a message that you want to encrypt and decrypt

With this in mind, you can run it like so:

$ python index.py --msg="helloWORLD"

It will encrypt and decrypt the message using a randomly generated public and private key pair (RSA), and print as it goes.