liveBook · Manning

Public key cryptography

Also called asymmetric encryption, asymmetric cryptography, public key encryption

Public-key cryptography is cryptography based on mathematically related public and private keys that support complementary operations such as encryption and decryption or signing and verification.

How 6 Manning books explain it

Software Security for Developers

A public-key cryptosystem is a cryptographic system that uses mathematically related public and private keys for security operations.

How it is used
Deploys public–private key pairs to secure TLS, service communication, encryption, signatures, and passwordless authentication.
How deep it goes
Explains key distribution, encryption, signatures, certificates, hybrid schemes, and RSA versus ECC without mathematical proofs.
Examples
Uses online services, ACME refund processing, TLS, RSA-OAEP, hybrid encryption, and WebAuthn as concrete applications.
What you can do after
Configure and troubleshoot TLS and choose safer key, padding, certificate, storage, and hybrid-encryption practices.

Read how Software Security for Developers explains public key cryptography →

Real-World Cryptography

Asymmetric encryption is an encryption technique in which a public key encrypts data and a corresponding private key decrypts it.

How it is used
Solves key distribution and supports confidentiality, key exchange, signatures, and passwordless authentication.
How deep it goes
Explains key-pair generation, encryption, decryption, signatures, and hybrid use, but defers detailed mathematical construction and implementation.
Examples
Uses encrypted email, Alice’s public-key message flow, RSA signatures, encapsulated symmetric keys, client certificates, SSH, and FIDO2 authenticators.
What you can do after
Apply public and private keys to encrypt messages, establish shared secrets, verify signatures, and authenticate clients.

Read how Real-World Cryptography explains public key cryptography →

Fundamentals of Cybersecurity

Asymmetric encryption is cryptography that uses mathematically related public and private keys for complementary encryption and decryption or signing and verification operations.

How it is used
Protects communication over untrusted networks without requiring participants to share a secret key beforehand.
How deep it goes
Works through key roles, a message exchange, signatures, trade-offs, and public-key trust without explaining the underlying mathematics.
Examples
Uses a confidential message between two people and a 100-employee key-count comparison.
What you can do after
Evaluate/understand when public-key encryption, signatures, and verified public keys address different communication risks.

Read how Fundamentals of Cybersecurity explains public key cryptography →

Hacking Cryptography

Public-key cryptography is cryptography based on paired public and private keys, allowing operations such as encryption or signature verification with a public key while restricting the corresponding inverse operation to the private-key holder.

How it is used
Uses paired keys to solve secret-key exchange and support encryption and signature verification over insecure channels.
How deep it goes
Explains keypair workflows, trapdoor foundations, RSA failures, and defenses, while deferring detailed digital-signature treatment.
Examples
Uses Alice–Bob message exchange, lock-and-key intuition, shared-prime RSA keys, batch GCD detection, padding, and small-exponent attacks.
What you can do after
Apply it via public-key encryption while recognizing weak randomness, deterministic RSA, shared factors, and small private exponents.

Read how Hacking Cryptography explains public key cryptography →

Build Python Web Apps with Streamlit

Public-key cryptography is a cryptographic technique that uses mathematically related public and private keys for secure authentication or communication.

How it is used
Secures authenticated SSH access to EC2 instances created for a deployed application.
How deep it goes
Defines the key roles and security benefit, then demonstrates setup, but defers the underlying theory and SSH connection procedure.
Examples
Uses EB CLI prompts to generate an RSA key pair and upload its public portion to AWS.
What you can do after
Operate Elastic Beanstalk initialization to create and register an SSH key pair for later EC2 access.

Read how Build Python Web Apps with Streamlit explains public key cryptography →

ASP.NET Core in Action, 3e

Public key cryptography is cryptography that uses a mathematically related public key and private key for encryption, decryption, or authentication.

How it is used
Supports HTTPS encryption and server authentication through public-private key pairs and certificate chains.
How deep it goes
Explains key roles and certificate trust chains, but stops short of algorithmic or mathematical details.
Examples
Uses browser-server encryption, development-certificate warnings, and the dotnet dev-certs https --trust command.
What you can do after
Operate ASP.NET Core HTTPS development certificates and resolve browser trust warnings with the .NET SDK.

Read how ASP.NET Core in Action, 3e explains public key cryptography →

Also covered in

What to know first

Related concepts

Questions about public key cryptography

What is public key cryptography?

Public-key cryptography is cryptography based on mathematically related public and private keys that support complementary operations such as encryption and decryption or signing and verification.

Which Manning books explain public key cryptography?

Software Security for Developers, Real-World Cryptography, Fundamentals of Cybersecurity, Hacking Cryptography, Build Python Web Apps with Streamlit and ASP.NET Core in Action, 3e.

What should I know before learning public key cryptography?

Manning books that teach public key cryptography usually introduce encryption, cryptographic key, authorization and AES first.

What is the difference between public key cryptography and symmetric encryption?

Public-key cryptography is cryptography based on mathematically related public and private keys that support complementary operations such as encryption and decryption or signing and verification. Symmetric encryption is a cryptographic technique in which the same shared secret key, or equivalent shared secret material, is used to encrypt and decrypt data.

What is public key cryptography a kind of?

Public key cryptography is a kind of encryption. Encryption is the cryptographic transformation of readable data into ciphertext that requires appropriate decryption information to recover the original data.

What is public key cryptography also called?

Public key cryptography is also called asymmetric encryption, asymmetric cryptography or public key encryption.

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.