Skip to content

Instantly share code, notes, and snippets.

View timgianitsos's full-sized avatar

Tim Gianitsos timgianitsos

  • Palo Alto, CA
View GitHub Profile
@timgianitsos
timgianitsos / rsa.py
Created October 11, 2020 19:08 — forked from tbenjis/rsa.py
A simple RSA encryption in python using Miller-Rabin primality test. Outputs results in text files
# Compute RSA encryption in python
# Author: Tunde
import random
import math
import argparse
import re
KEY_INT = 100 # we define the near max value to get its random number for key
def main():