liveBook · Manning

Textbook rsa

Textbook RSA is an unpadded RSA method that directly applies modular exponentiation to a message representative for encryption or signing.

How 2 Manning books explain it

Hacking Cryptography

The schoolbook RSA signature scheme is an unpadded textbook RSA signature method that applies direct modular exponentiation to a message representative.

How it is used
Uses direct RSA exponentiation to teach encryption, signatures, implementation pitfalls, and concrete attacks.
How deep it goes
Descends from equations to Go implementations and attack tests, while deferring secure padding internals to later algorithms.
Examples
Uses equal plaintexts, fixed points, a forged signature, concrete modular values, and a Go test recovering a decrypted timestamp.
What you can do after
Diagnose deterministic outputs, unpadded signature forgery, and short-exponent weaknesses, then select padding and safer key-generation practices.

Read how Hacking Cryptography explains textbook rsa →

Real-World Cryptography

Textbook RSA is the naive RSA encryption scheme that directly applies modular exponentiation without security-preserving padding.

How it is used
Explains RSA's core encryption and decryption operations before introducing safer standardized schemes.
How deep it goes
Works through modular exponentiation and a toy example, then stops short of a complete implementation and secure padding design.
Examples
Uses m = 2 with e = 2 and p = 5, small-message guessing, and PKCS#1 v1.5 padding.
What you can do after
Evaluate naive RSA constructions, recognize deterministic-message attacks, and distinguish raw exponentiation from padded encryption.

Read how Real-World Cryptography explains textbook rsa →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.