To Implement RSA Algorithm.: Evaluation: Sr. No Rubric Grade
To Implement RSA Algorithm.: Evaluation: Sr. No Rubric Grade
Class
: B.E
Subject Name: Cryptography and System Security
Practical No:
Title:
3
To implement RSA Algorithm.
Date of
Performance:
Date of
Submission:
Roll No:
Name of the
Student:
6779
Priyadarshini Ashokan
Evaluation:
Sr. No
Rubric
On time submission
Or completion (2)
Preparedness(2)
Skill (4)
Output (2)
Grade
Lab Objective :
This lab provides insight into:
Prerequisite :
Theory:
RSA crypto system is a public key system. RSA is similar to other
methods in which solving the cryptosystem amounts to finding terms that
add to a particular sum or multiply to a particular product. It relies on
number theory. 2 Keys 'd' n 'e'are used for encryption and decryption. They
are interchangeable. The plain text block P is encrypted as P^e mod n. The
decryption key is carefully chosen so that P^ed mod n=P. Thus the
legitimate receiver who knows 'd; simply computes P^ed mod n=P and P
without having factor P^e.
ALGORITHM:
1) Start.
2) Find 2 large prime numbers i.e approx 100 digit prime numbers 'p' and 'q'.
3) Compute n=p*q where n is also 200 digit number.
4) Find 'e' which is realtively prime wrt (p-1)(q-1).
5) Find 'd' such that (e*d) mod ((p-1)(q-1))=1.
6) Cipher text is obtained by CT= PT^e mod n.
7) Decrypt using PT= CT^d mod n.
8) Stop.
Example of RSA
Conclusion:
The program was tested for different sets of inputs.
Program is working
SATISFACTORY
NOT SATISFACTORY
( Tick appropriate outcome)