Question: home / study / engineering / computer science / computer science questions and answers / write a java program for rsa encryption that has the

home / study / engineering / computer science / computer science questions and answers / write a java program for rsa encryption that has the following inputs and outputs: given a ...

Your question has been answered

Let us know if you got a helpful answer. Rate this answer

Question: Write a Java program for RSA encryption that has the following inputs and outputs: Given a messag...

Write a Java program for RSA encryption that has the following inputs and outputs:

Given a message and an integer n = pq where p and q are odd primes and an integer e > 1 relatively prime to (p 1)(q 1), encrypt the message using the RSA cryptosystem with key (n, e).

C = M^e mod n C = encrypted message M = plaintext message (converted to # via ASCII) n is product of two primes pq e is exponent relatively prime to (p-1)(q-1)

the first if i want give

a 00 , b 01 , c 02 , d 03 , e 04 , f 05 , g 06 , h 07 , i 08 , j 09 , k 10 , l 11 , m 12 , n 13 , o 14 , p 15 , q 16 , r 17 , s 18 , t 19 , u 20 , v 21 , w 22 , x 23 , y 24 , z 25

massege UP LO AD

so the number form is : 2015 1114 0003

n=53*61=3233

c = 2015 ^e(d=17) mod(3233)

for : 1114

c = 1114 ^e(d=17) mod(3233)

for : 3

c = 0003 ^e(d=17) mod(3233)

=1211mod(3233)

so the encrypted form of message is : 2545 2757 1211

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!