Textbook rsa
Textbook RSA is an unpadded RSA method that directly applies modular exponentiation to a message representative for encryption or signing.
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.
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.
Related concepts
- RSAkind of · RSA is a public-key cryptosystem based on the computational difficulty of factoring large composite integers and supporting encryption and digital signatures.
- private keyuses · A private key is the secret component of an asymmetric cryptographic key pair used by its holder for operations such as authentication, decryption, or digital signing.
- public exponentuses · A public exponent is the exponent component of an RSA public key used for modular exponentiation during encryption or signature verification.
- digital signaturekind of · A digital signature is cryptographic data generated with a private key and verified with corresponding public information to authenticate data or its signer and detect alteration.
- paddingused by · Padding is the addition of extra space, values, or data around or within a structure to satisfy size, alignment, layout, or processing requirements.
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.

