Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 534 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 534 Bytes

calculate-d

Given e and φ(n), calculate the modular multiplicative inverse d such that d x e mod φ(n) = 1

This is a script to calculate d in the RSA encryption formula. More info can be found here.

Dependencies

  1. Get python 3.0

Getting Started

  1. Navigate to the directory where you can find calc_d.py
  2. Modify the values of e and the φ(n) in the script and save
  3. Run the command python calc_d.py