Log in Sign up
Back to Discover
💻

RSA cryptosystem

technology Maturity 11-13

Computers use a secret code.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg
This code keeps things safe. It uses math to hide words. It helps you send notes. It is very smart. Do you like secrets?

33 words

Computers use a special math code.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg
This code keeps your messages safe. It uses two secret numbers. One number is for everyone to see. The other number is kept very secret.
Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg
People use the public number to lock a message. Only the secret number can unlock it. This makes it hard for others to read. It is a very smart way to hide things. This math helps us send notes safely every day.

81 words

Computers use a special math code to keep data safe. This is called RSA. The name comes from three men: Ron Rivest, Adi Shamir, and Leonard Adleman. They shared their idea in 1977.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg

This system uses two different keys. One is a public key. You can show this key to anyone. It is used to lock a message. The other is a private key. You must keep this key a secret. It is the only way to unlock the message.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg

How does it work? It uses large prime numbers. A prime number is a number that can only be divided by itself and one. To make the keys, you pick two big prime numbers. You multiply them together to make a new number. This new number is part of your public key.

It is very hard to work backward. A computer can easily multiply the primes. But it is very hard to find the original primes from the big number. This is called the factoring problem. Because it is so hard, your secret stays safe. This math helps us send notes and data every day.

193 words

The RSA cryptosystem is a famous way to keep digital information safe. It is a type of public-key system used for secure data transmission. This means it helps people send secrets across the internet without others seeing them. RSA is used for many things today. It helps create digital signatures to prove who sent a message. It also encrypts very short messages, like a single-use key.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg
This system is one of the oldest ways to do this. It helps keep our digital world running smoothly and safely.

How does this math-based lock work? It uses a special pair of keys. The public key is used to lock a message or verify a signature. Anyone can have this key. The private key is used to unlock messages or sign them. You must keep this key a secret. To make these keys, you start with two large prime numbers. A prime number is a number that only divides by itself and one. You multiply these two primes to get a huge number. This huge number becomes part of your public key.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg

The security of RSA depends on a hard math task. This task is called the factoring problem. It is easy for a computer to multiply two large primes together. However, it is very hard to do the opposite. If you only have the huge product, finding the original primes is a huge job. This difficulty is what keeps the messages safe. People call the attempt to break this code the RSA problem. Scientists are still studying if it is as hard as factoring.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg

The history of RSA has an interesting story. Three men named Ron Rivest, Adi Shamir, and Leonard Adleman created it. They worked at the Massachusetts Institute of Technology. They described their method in 1977. Rivest and Shamir were computer scientists. Adleman was a mathematician who found weaknesses in their ideas. They tried many different math paths for a whole year. One night in April 1977, Rivest had a breakthrough. He worked through the night to finish his paper by daybreak.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg

There is another secret history to this system. A mathematician named Clifford Cocks found a similar way in 1973. He worked for a British agency called GCHQ. His work was top-secret and was not shared with the world. It was only declassified in 1997. At the time, computers were too expensive to use his method easily. Today, we use RSA to protect much of our digital life. It is like a mathematical shield for our data. It connects the math we learn in school to the tools we use every day.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg

453 words

The RSA cryptosystem is a foundational family of public-key cryptosystems. It is one of the oldest methods used for secure data transmission. This system allows users to communicate privately across insecure networks. It is used for digital signatures, such as RSASSA-PSS or RSA-FDH. It also provides public-key encryption for very short messages. These messages are often single-use symmetric keys in a hybrid cryptosystem. The system relies on complex number theory to protect information.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg

To understand RSA, one must understand the mechanism of key generation. A user begins by choosing two large prime numbers, p and q. These numbers are chosen at random and kept strictly secret. The user then computes the modulus, n, by multiplying p and q together. This modulus, n, is used in both the public and private keys. Next, the user calculates Carmichael's totient function, which is denoted as λ(n). This is calculated as the least common multiple of (p - 1) and (q - 1). The user then selects a public exponent, e, such that 1 < e < λ(n). This exponent must be coprime to λ(n), meaning they share no common factors. Finally, the user calculates the private exponent, d, as the modular multiplicative inverse of e modulo λ(n). The public key consists of the pair (n, e). The private key consists of the pair (n, d).

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg

Once the keys are ready, the process of encryption and decryption begins. Suppose Bob wants to send a secret message to Alice. Bob first obtains Alice's public key, which includes n and e. Bob converts his message into an integer, m, using a padding scheme. He then computes the ciphertext, c, using the formula c = m^e mod n. This process is called modular exponentiation. After Bob sends the ciphertext, Alice receives it. Alice uses her private key, d, to recover the message. She calculates m = c^d mod n. This mathematical operation reverses the encryption. Alice then reverses the padding scheme to read the original message.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg

RSA can also be used for digital signatures to prove identity. In this process, Alice produces a hash value of her message. She then raises this hash to the power of her private exponent, d, modulo n. This result is her digital signature. Bob can verify the signature using Alice's public key, e. He raises the signature to the power of e modulo n. If the result matches the hash of the message, the signature is valid. This ensures the message was truly sent by Alice and was not changed.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg

The history of RSA involves a fascinating race of discovery. The concept of asymmetric public-private key systems was attributed to Whitfield Diffie and Martin Hellman in 1976. They introduced digital signatures and attempted to use number theory. However, they did not fully realize a one-way function. In 1977, Ron Rivest, Adi Shamir, and Leonard Adleman worked at MIT. They spent a year trying to create a function that was hard to invert. Rivest and Shamir proposed functions, while Adleman searched for mathematical weaknesses. In April 1977, Rivest had a breakthrough. He worked through the night to formalize the idea. By daybreak, much of the RSA paper was ready.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg

A secret history exists involving the British signals intelligence agency, GCHQ. In 1973, mathematician Clifford Cocks developed an equivalent system. Because computers were very expensive then, his work was considered a curiosity. It was never deployed and remained top-secret. His work was not declassified until 1997. Meanwhile, MIT was granted a patent for the RSA algorithm in 1983. This patent only had legal standing in the United States. The patent was set to expire in 2000. On September 6, 2000, RSA Security released the algorithm into the public domain.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg

The security of RSA is tied to the factoring problem. This is the difficulty of finding the prime factors of a very large number. It is easy to multiply two large primes to get a product. However, it is extremely difficult to work backward from the product to the primes. Breaking RSA encryption is known as the RSA problem. Scientists are still debating if the RSA problem is as hard as factoring. If a large enough key is used, there are no known published methods to defeat it. This mathematical barrier is what keeps modern digital communication secure.

Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg

742 words
🖼️ Images & Media (1)
File:Adi Shamir 2009 crop.jpg
Adi Shamir 2009 crop.jpg
Up Next
💻
Public-key cryptography
Technology
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.