Question

How do you categorize the RSA Algorithm? Assuming p and q are given, write the pseudo...

How do you categorize the RSA Algorithm? Assuming p and q are given, write the pseudo code for encryption and decryption.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Step 1:-select p,q two prime no.

Step2:-n=p*q

Φ(n)=(p-1)*(q-1)

step 3:-find public key e

gcd(e,phi(n))=1 and 1<e<phi(n)

step 4:- find private key d

d *e mod phi(n)=1

step 5:-encrypt the messy m

c=m^e mod n

step 6 decrypt

m=c^d mod n

Add a comment
Know the answer?
Add Answer to:
How do you categorize the RSA Algorithm? Assuming p and q are given, write the pseudo...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT