Technology

RSA Encryption (Rivest–Shamir–Adleman)

RSA uses mathematically linked public and private keys to support encryption and digital signatures without sharing a secret key in advance.

Explore books and products on Amazon

As an Amazon Associate, LinkPods earns from qualifying purchases.

  • Amazon · paid link

    Books

    Reading about RSA Encryption (Rivest–Shamir–Adleman)

    Browse on Amazon
  • Amazon · 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 transmitted information and create digital signatures. It uses two mathematically related keys with different roles. A sender encrypts information with the recipient’s public key, and the recipient decrypts it with their private key. For signatures, the roles change: the private key creates a signature, while the public key checks it.

Ron Rivest, Adi Shamir, and Leonard Adleman publicly presented RSA in 1977 while working at the Massachusetts Institute of Technology. Its name combines the first letters of their surnames. Their work followed the public-key concept published by Whitfield Diffie and Martin Hellman in 1976. Clifford Cocks had independently devised an equivalent system at Britain’s GCHQ in 1973, but his work remained classified until 1997.

To generate a typical RSA key, two different large prime numbers are selected randomly and multiplied together. Their product becomes the modulus, a number used in both public and private operations. The public key includes this modulus and a public exponent; a related private exponent stays secret. RSA performs calculations by raising numbers to powers and taking remainders after division by the modulus. Knowing the secret primes allows the private exponent to be calculated.

RSA’s security is connected to the difficulty of recovering the prime factors of a large product. However, whether defeating RSA encryption is equally difficult remains unresolved. In practice, RSA encryption handles very short messages, usually a symmetric key intended for one use within a hybrid cryptosystem. RSA also supports digital signatures and key encapsulation. Implementation guidance in RFC 8017 covers encryption and signature schemes, including OAEP-based encryption and PSS-based signatures, connecting the underlying mathematics to defined cryptographic procedures.

Common questions

What is RSA encryption?

RSA encryption is a public-key method in which information encrypted with a recipient’s public key can be decrypted using their corresponding private key. RSA is also used for digital signatures, with the private key creating signatures and the public key checking them.

Who invented RSA encryption, and when?

Ron Rivest, Adi Shamir, and Leonard Adleman publicly described RSA in 1977 at the Massachusetts Institute of Technology. Clifford Cocks developed an equivalent system secretly at GCHQ in 1973. His work became public in 1997.

How do RSA public and private keys work?

An RSA public key contains a modulus and a public exponent, while the private key contains a secret exponent used for decryption or signing. In typical key generation, the modulus is calculated by multiplying two randomly selected large primes. Those primes must remain secret because they can be used to calculate the private exponent.

Why are prime numbers important in RSA encryption?

Prime numbers are important to RSA because multiplying two large primes produces a modulus whose factors are difficult to recover. Recovering those factors would allow the private exponent to be calculated. Whether breaking RSA encryption is as difficult as factoring remains an open question.

What is RSA encryption used for?

RSA encryption is used for very short messages, most often a single-use symmetric key in a hybrid cryptosystem. The broader RSA system also supports digital signatures and public-key key encapsulation. RSAES-OAEP is an encryption scheme, while RSASSA-PSS is a signature scheme.

Where this leads

RSA is used in internet security, including digital signatures that authenticate servers during TLS connections.RSA connects to the open question of whether integer factorization has a polynomial-time algorithm on classical computers.Clifford Cocks developed an encryption scheme equivalent to RSA in 1973, four years before Rivest, Shamir and Adleman publicly introduced their system.RSA encryption uses a modulus whose factorization into its secret prime factors allows the private key to be calculated.RSA Encryption names the same cryptosystem using the surnames of its three public inventors.The scheme Cocks developed from Ellis's concept anticipated RSA, which Rivest, Shamir and Adleman independently introduced in 1977.Factoring an RSA public key's modulus with Shor's algorithm would allow an attacker to calculate the corresponding private key.The Electric TelegraphThe Electric Te…The Printing PressThe Printing Pr…Number TheoryNumber TheoryMathematical OptimizationMathematical Op…The Internet — RSA is used in internet security, including digital signatures that authenticate servers during TLS connections.The InternetThe Unsolved Problems of Mathematics — RSA connects to the open question of whether integer factorization has a polynomial-time algorithm on classical computers.The Unsolved Problems…Clifford Cocks — Clifford Cocks developed an encryption scheme equivalent to RSA in 1973, four years before Rivest, Shamir and Adleman publicly introduced their system.Clifford CocksInteger Factorization — RSA encryption uses a modulus whose factorization into its secret prime factors allows the private key to be calculated.Integer FactorizationRSA Cryptosystem — RSA Encryption names the same cryptosystem using the surnames of its three public inventors.RSA CryptosystemJames H. Ellis — The scheme Cocks developed from Ellis's concept anticipated RSA, which Rivest, Shamir and Adleman independently introduced in 1977.James H. EllisShor's Algorithm — Factoring an RSA public key's modulus with Shor's algorithm would allow an attacker to calculate the corresponding private key.Shor's AlgorithmRSA Encryption (Rivest–Shamir–Adl…

Select any dot to open that topic. The outer ring shows where each connection leads next.

Verified sources