-
Asymmetric Cryptography: The RSA algorithm (with examples)
Read more: Asymmetric Cryptography: The RSA algorithm (with examples)The Rivest-Shamir-Adleman (RSA) algorithm is the most widely accepted approach in asymmetric cryptography. Asymmetric cryptography means that one key is used to encrypt and a different, but related one is used to decrypting the message. The RSA algorithm is as follows: Notice that from steps 1 to 6, you are just calculating the private and…
-
How to generate RSA key pairs
Read more: How to generate RSA key pairsThe Rivest-Shamir-Adleman (RSA) scheme is the most widely accepted approach for public-key cryptography. Here I’ll show you how to generate RSA key pairs. The RSA algorithm to generate the key pairs is as follows: Choose p, q, two prime numbers Calculate n = pq Calculate f(n) = (p-1)(q-1) Chose e such that gcd(f(n), e) =…