RSA Cryptosystem
RSA uses mathematically linked public and private keys to support encryption and digital signatures.
Explore books and products on Amazon
As an Amazon Associate, LinkPods earns from qualifying purchases.
Amazon · paid link
Books
Reading about RSA Cryptosystem
Browse on AmazonAmazon · paid link
Gear and gadgets
Related devices and accessories
Browse on Amazon
Links open Amazon search results; LinkPods has not reviewed the items listed there.
RSA is a public-key cryptographic system used to protect communications through encryption and digital signatures. It uses two mathematically related keys with different roles. The public key lets others encrypt information for its owner or check the owner’s signatures. The secret private key enables the owner to decrypt that information or create signatures.
The name comes from Ron Rivest, Adi Shamir and Leonard Adleman, who described their algorithm publicly in 1977 while working at the Massachusetts Institute of Technology. Their research followed the public-key concept published by Whitfield Diffie and Martin Hellman in 1976. Clifford Cocks had independently developed an equivalent system at Britain’s Government Communications Headquarters in 1973, but his classified work became public only in 1997.
RSA key generation starts by randomly selecting two different large prime numbers. Multiplying them produces a number called the modulus. The public key contains this modulus and a public exponent, while a corresponding private exponent remains secret. Operations raise numbers to these exponents and take the remainder after division by the modulus, a process called modular exponentiation. The exponents are chosen so that the private operation can reverse the public operation.
RSA connects number theory with practical communication security. Its security is linked to the difficulty of recovering the prime factors of a large modulus, although whether breaking RSA encryption is equally difficult remains unresolved. In practice, RSA usually encrypts only a very short message, almost always a symmetric key intended for one use within a hybrid system. RSA-based schemes include RSAES-OAEP for encryption and RSASSA-PSS for signatures. Implementation details also matter: the source describes how insecure padding can introduce weaknesses when certain small public exponents are used.
Common questions
What is the RSA cryptosystem?
RSA is a public-key system that supports encryption, digital signatures and key encapsulation. Its public key is used for encryption or signature checking, while its private key is used for decryption or signing.
Who invented RSA, and when?
Ron Rivest, Adi Shamir and Leonard Adleman publicly described RSA in 1977 at the Massachusetts Institute of Technology. Clifford Cocks had developed an equivalent system at Britain’s Government Communications Headquarters in 1973. His work remained secret until 1997.
How do RSA public and private keys work?
RSA keys use a shared modulus and related exponents to perform complementary mathematical operations. The modulus is formed by multiplying two large, randomly selected primes. The public exponent is published with the modulus, while the private exponent and the information needed to calculate it must remain secret.
Why does RSA use large prime numbers?
RSA uses large primes because factoring their product is intended to be computationally impractical. Its security is connected to this factoring difficulty. However, it has not been established that breaking RSA encryption is as difficult as factoring the modulus.
What is RSA used for in practice?
RSA is used for digital signatures, encryption of very short messages and public-key key encapsulation. The encrypted message is almost always a symmetric key for a single use in a hybrid cryptosystem. RSAES-OAEP is an encryption scheme, while RSASSA-PSS is a signature scheme.
Where this leads
Select any dot to open that topic. The outer ring shows where each connection leads next.
Integer Factorization →
Factoring RSA's public modulus into its prime factors allows an attacker to calculate the private key.
Integer Factorization →
Finding the prime factors of an RSA modulus enables recovery of the private key.
Clifford Cocks →
Clifford Cocks devised an equivalent system at Britain's GCHQ in 1973, but his work remained classified until 1997.
RSA Encryption (Rivest–Shamir–Adleman) →
RSA Encryption names the same cryptosystem using the surnames of its three public inventors.
Technology
The Internet →
RSA signatures are used in digital certificates and protocols that authenticate internet communications.