top of page
Inaugurated by IN-SPACe
ISRO Registered Space Tutor

S6-SA1-0472

What is the RSA Cryptosystem (basic intro)?

Grade Level:

Class 10

AI/ML, Physics, Biotechnology, Space Technology, Chemistry, Engineering, Medicine

Definition
What is it?

The RSA Cryptosystem is a method for securely exchanging information over the internet. It uses very large prime numbers to create a 'lock' and a 'key' that are mathematically linked but difficult to break, ensuring only the intended person can read a message.

Simple Example
Quick Example

Imagine you want to send a secret message to your friend, Rahul, about your cricket team's strategy. You put the message in a special box and 'lock' it with a unique padlock that only Rahul has the key for. Even if someone else gets the box, they can't open it without Rahul's key. RSA works similarly, but with digital 'locks' and 'keys'.

Worked Example
Step-by-Step

Let's simplify how RSA uses a 'public key' to lock a message and a 'private key' to unlock it.

Step 1: Rahul decides on two secret prime numbers, say p=3 and q=11. (In real RSA, these are huge!)
---
Step 2: He calculates N = p * q = 3 * 11 = 33. This N is part of his public key.
---
Step 3: He also calculates Euler's totient function, phi(N) = (p-1)*(q-1) = (3-1)*(11-1) = 2 * 10 = 20.
---
Step 4: Rahul chooses a public exponent 'e' such that 1 < e < phi(N) and 'e' has no common factors with phi(N). Let's pick e=7. (Public Key: (N=33, e=7))
---
Step 5: Now, he finds a private exponent 'd' such that (d * e) % phi(N) = 1. So, (d * 7) % 20 = 1. If d=3, then (3 * 7) % 20 = 21 % 20 = 1. So d=3 is his private key.
---
Step 6: You want to send a message, say the number M=5. You use Rahul's public key (N=33, e=7) to encrypt it: C = M^e % N = 5^7 % 33.
---
Step 7: 5^7 = 78125. So, C = 78125 % 33. 78125 divided by 33 is 2367 with a remainder of 14. So, C=14. You send 14 to Rahul.
---
Step 8: Rahul receives 14. He uses his private key 'd=3' to decrypt it: M = C^d % N = 14^3 % 33.
---
Step 9: 14^3 = 2744. So, M = 2744 % 33. 2744 divided by 33 is 83 with a remainder of 5. So, M=5. Rahul gets your original message, 5!

Answer: The original message was 5.

Why It Matters

RSA is crucial for securing our digital world, from online banking to WhatsApp messages. Engineers and cybersecurity experts use RSA principles to build safe communication systems. Understanding it can open doors to careers in data security, software development, and even national defense.

Common Mistakes

MISTAKE: Thinking the public key can be used to decrypt messages. | CORRECTION: The public key is only for encrypting messages; only the corresponding private key can decrypt them.

MISTAKE: Believing RSA keys are simple numbers that can be easily guessed. | CORRECTION: RSA keys are based on extremely large prime numbers, making them computationally impossible to guess or factorize in a reasonable time with current technology.

MISTAKE: Confusing encryption (making a message unreadable) with hashing (creating a fixed-size 'fingerprint' of data). | CORRECTION: Encryption makes data secret and reversible (can be decrypted), while hashing creates a one-way, irreversible summary of data for integrity checks.

Practice Questions
Try It Yourself

QUESTION: If you use RSA to send a secret message, which key would you share with everyone so they can send you encrypted messages? | ANSWER: The public key.

QUESTION: What type of numbers are essential for creating the strong 'lock' in RSA? Give an example of two such numbers. | ANSWER: Prime numbers. Examples: 7 and 13.

QUESTION: Suppose your RSA public key is (N=55, e=3). If someone sends you an encrypted message C=8, what was the original message M? (Hint: You need to find p and q first, then phi(N), then 'd' such that (d*e)%phi(N) = 1. Then M = C^d % N) | ANSWER: M = 2.

MCQ
Quick Quiz

Which of the following is true about the RSA Cryptosystem?

The private key is used to encrypt messages.

It relies on the difficulty of factoring large prime numbers.

Both the public and private keys are identical.

It is primarily used for physical security, like locking doors.

The Correct Answer Is:

B

RSA's security comes from the mathematical challenge of breaking down a very large number (N) into its two prime factors (p and q). The other options are incorrect: the private key decrypts, keys are different, and it's for digital security.

Real World Connection
In the Real World

Every time you make a payment using UPI on Google Pay or PhonePe, or when you see 'https://' in your browser's address bar for online shopping, RSA is often working behind the scenes. It helps secure your transaction details and ensures your data travels safely from your phone to the bank's servers, preventing hackers from reading your sensitive information.

Key Vocabulary
Key Terms

CRYPTOSYSTEM: A system for secure communication, using codes to protect information. | ENCRYPTION: The process of converting information into a code to prevent unauthorized access. | DECRYPTION: The process of converting encrypted information back into its original, readable form. | PUBLIC KEY: A key that can be shared openly and is used to encrypt messages. | PRIVATE KEY: A secret key known only to the owner, used to decrypt messages encrypted with the corresponding public key.

What's Next
What to Learn Next

Now that you understand the basics of RSA, you can explore other cryptographic concepts like symmetric-key encryption (like AES) or digital signatures. These concepts build upon the idea of securing information and are vital for understanding modern internet security.

bottom of page