liveBook · Manning

RSA

As explained in Real-World Cryptography

RSA is a public-key cryptosystem based on the difficulty of factoring large composite integers and supporting encryption and digital signatures.

RSA is an asymmetric cryptosystem with two jobs: encrypting messages with a public key and creating digital signatures with a private key. Anyone can encrypt to the key owner, while others can verify a signature using the public key, message, and signature. section 1.4.2 section 1.4.3

A practical RSA exchange separates the roles of its keys:

  • Publish the public key and keep the private key secret. section 1.4.2
  • Encrypt a message with the recipient’s public key; decrypt it with the associated private key. section 1.4.2
  • Sign a message with the private key; verify it with the public key, the signed message, and the signature. section 1.4.3
  • Encapsulate a generated symmetric key with RSA, allowing the recipient to recover a shared secret. section 6.2.1

From message to ciphertext

Textbook RSA treats a message as a number. Encryption raises it to a public exponent e modulo a public modulus N = p × q; decryption raises the ciphertext to a private exponent d modulo N. For m = 2, e = 2, and modulus 5, the illustrative ciphertext is 2² mod 5 = 4. The concept is simple, but naive textbook implementations are insecure, and even standardized schemes have suffered breaks. section 6.3.1

How Real-World Cryptography covers it

How deep it goes
Explains public-key roles and modular exponentiation with e, d, and N, while warning that naive implementations and standards can fail.
Examples
Uses Queen Alice’s encrypted chest, signed trust statement, modular example m = 2, and symmetric-key encapsulation.
What it assumes
Assumes symmetric encryption and modular arithmetic, while introducing public-key and private-key behavior through plain-language examples.
What you can do after
Evaluate RSA encryption, signatures, and key encapsulation while recognizing the risks of naive implementations and changing protocol preferences.
How it connects
Connects asymmetric cryptography with symmetric encryption, digital signatures, key exchange, Diffie-Hellman, ECDH, and hybrid encryption.

Also explained in

Compare how 4 books explain RSA →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Real-World Cryptography. The section links point to the parts of the book it draws on.