RSA_Algorithm_Assignment
RSA_Algorithm_Assignment
RSA_Algorithm_Assignment
The RSA algorithm is one of the most widely used public-key cryptosystems,
named after its inventors Rivest, Shamir, and Adleman. It is employed for secure
data transmission and relies on the mathematical properties of prime numbers and
modular arithmetic.
1. Key Generation:
- Compute n = p * q, where n is the modulus for both the public and private keys.
- Choose a public key exponent e such that 1 < e < phi_n and gcd(e, phi_n) = 1.
2. Encryption:
- The plaintext message M is converted into an integer m such that 0 <= m < n.
3. Decryption:
- The recipient uses their private key (n, d) to decrypt the ciphertext c.
Example:
To decrypt c = 2790: