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.
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
- Elliptic Curve Cryptography for Developers
- Authorization in Action
- Data-Driven Cybersecurity
- Grokking Web Application Security
- Apache Kafka in Action
- Data Pipelines with Apache Airflow, Second Edition
- Terraform in Depth: Infrastructure as Code with Terraform and OpenTofu
- API Design Patterns
- Rust Servers, Services, and Apps
What to know first
- encryptionEncryption is the cryptographic transformation of readable data into ciphertext that requires appropriate decryption information to recover the original data.
- cryptographic keyA cryptographic key is a value supplied to a cryptographic algorithm to control operations such as encryption, decryption, signing, authentication, or verification.
- authorizationAuthorization is the determination of which actions or resources an identity or other entity is permitted to access under defined permissions or policies.
- AESAES is a standardized symmetric block cipher that encrypts and decrypts data in 128-bit blocks using 128-, 192-, or 256-bit keys.
Related concepts
- symmetric encryptioncontrasts with · 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.
- TLSused by · Transport Layer Security (TLS) is a cryptographic protocol that protects network communications through confidentiality, integrity, and authentication of communicating endpoints.
- encryptionkind of · Encryption is the cryptographic transformation of readable data into ciphertext that requires appropriate decryption information to recover the original data.
- public-private key pairuses · A public-private key pair consists of mathematically related public and private cryptographic keys used together for asymmetric cryptographic operations.
- key-distribution problemaddresses · The key-distribution problem is the challenge of securely delivering cryptographic keys to authorized communicating parties while preventing unauthorized access or exposure.
- key exchangeused by · Key exchange is a cryptographic protocol by which communicating parties establish a shared secret over a communication channel without directly transmitting that secret.
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.





