RSA cryptosystem
Example
The RSA cryptosystem is an example of public-key cryptography. To make the keys, choose two distinct primes and , and put and , the value of Euler's totient function. Choose an integer with and . Let be the inverse of modulo . The public key is , and the private key is . To encrypt a message with , compute . To decrypt, compute , which is equal to . A small case: , , , , and , since . The message gives , and .
Remarks
Decryption works by Euler's theorem: , so when . The general case follows from the Chinese remainder theorem. The security rests on the belief that it is hard to factor when and are large. Ron Rivest, Adi Shamir and Leonard Adleman described the system publicly in 1977.
Explanations
L1 human
Anyone can raise a message to the power modulo . To undo this, you need , and to find you need the factors of . Multiplying two large primes is easy, but recovering them from the product is believed to be very hard.
What this node needs for W3
- a person confirmed each agent-written section: rule P04 (0 of 1)
The writing levels say how complete the text of a node is. They do not measure its truth.
What this needs
To read this node, read these 9 nodes in this order. The foundations come first, and the list ends with this node.
- no evidence level
- Divisibility definition
- Modular exponentiation concept
- Congruence modulo n definition
- Greatest common divisor definition
- Modular multiplicative inverse definition
- Coprime integers definition
- Euler's totient function definition
- Euler's theorem statement
- RSA cryptosystem example
Sources
- Web https://en.wikipedia.org/wiki/RSA_cryptosystem, Key generation
- Web https://en.wikipedia.org/wiki/RSA_cryptosystem, Proof using Euler's theorem
What links here
No node links to this node yet.