/RSA-Concept

A sample in RSA encryption and Decription

Primary LanguagePython

RSA Encryption

This is an python Implementation of RSA encryption and decryption algorithm. Based on the theory, it can achieve encryption, decryption given the number p,q and the plaintext. This code is for course study only.

Quickstart

  1. Download the project
  2. Find RSA.py and run it in python 2.7.
  3. Try to modify the code of last line, where you can find RSA_process(p=103, q=97, message="hello world"), you can change the value p, q and the message to other value and see how output changes.

Python Version

I used Python 2.7 to finished the code. Please note using python 3.x may cause unexpected problems.

Have fun! :)

Reference: