Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. The RSA algorithm is
  2. Step 1:-select p,q two prime no.
  3. Step2:-n=p*q
  4. Φ(n)=(p-1)*(q-1)
  5. step 3:-find public key e
  6. gcd(e,phi(n))=1 and 1<e<phi(n)
  7. step 4:- find private key d
  8. d *e mod phi(n)=1
  9. step 5:-encrypt the messy m
  10. c=m^e mod n
  11. step 6 decrypt
  12. m=c^d mod n
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement