RTUComputer ScienceYr 2021 · Sem 72021

Q11Information System Security

Question

4 marks

Explain the working principle of the RSA algorithm with an example.

Answer

A definitive mathematical exposition on the RSA algorithm. Violently details the prime generation, Euler's Totient, and the exact modular exponentiation required to execute public-key encryption and decryption.

Invented by Rivest, Shamir, and Adleman, RSA is the absolute foundation of Asymmetric Cryptography. It completely eradicates the key-distribution problem of symmetric ciphers. Its security is mathematically anchored in the horrific computational difficulty of Integer Factorization.

  • Step 1: Violently generate two massive, distinct prime numbers, and . (Example: ).
  • Step 2: Mathematically calculate the Modulus . (). This will be released to the public.
  • Step 3: Calculate Euler's Totient . ().
  • Step 4: Select the Public Exponent . It must be , and strictly coprime to . (Let ).
  • Step 5: Calculate the highly secret Private Exponent . It is the modular multiplicative inverse of . Meaning, . (Let , because ).

The Public Key is . The Private Key is .

Encryption (Sender using Public Key)

Let Plaintext Message . The absolute encryption formula is .

. The Ciphertext is .

Decryption (Receiver using Private Key)

The receiver violently unlocks using their Private Key . Formula: .

. The absolute original plaintext is flawlessly recovered.

A hacker intercepting and cannot find without knowing , which requires mathematically factoring back into and . For massive 2048-bit numbers, this is physically impossible.

Back to Paper