liveBook · Manning

Public-private key pair

A public-private key pair is a mathematically related public key and private key used together for asymmetric cryptographic operations.

How 6 Manning books explain it

Software Security for Developers

A public-private key pair is a mathematically related pair of asymmetric cryptographic keys in which the private key signs data and the public key verifies it.

How it is used
Solves key distribution for encryption, signatures, service authentication, certificates, and passwordless hardware-key login.
How deep it goes
Explains key roles, compromise response, certificates, and Java or OpenSSL generation, but defers mathematical proofs and protocol internals.
Examples
Uses Java RSA services, OpenSSL Ed25519 files, X.509 certificate issuance, signed service requests, and hardware-key login challenges.
What you can do after
Build it from scratch using Java or OpenSSL, then apply it to encryption, signature verification, certificates, and service requests.

Read how Software Security for Developers explains public-private key pair →

Hacking Cryptography

A key pair consists of mathematically related public and private keys used together in asymmetric cryptography.

How it is used
Enables confidential encryption, public verification of signatures, and certificate-based extension of trust.
How deep it goes
Derives RSA public and private components, then implements ECDSA key generation and signing while deferring signature-validation implementation.
Examples
Uses Alice and Bob encryption, RSA prime generation, contract signing, website certificates, and Go ECDSA code with a fixed nonce.
What you can do after
Evaluate/understand which key encrypts, decrypts, signs, or verifies, and recognize nonce reuse as a private-key risk in ECDSA.

Read how Hacking Cryptography explains public-private key pair →

Real-World Cryptography

A key pair is a linked public key and private key used together in public-key cryptography.

How it is used
Supports asymmetric encryption, shared-secret key exchanges, digital signatures, and Bitcoin transaction authorization.
How deep it goes
Explains generation, key roles, encryption, exchange, signing, and failure modes, while deferring detailed authentication protocols.
Examples
Uses Alice-and-Bob exchanges, Python Ed25519 signing, C session-key setup, and Bitcoin transfers as concrete examples.
What you can do after
Apply key pairs to encrypt messages, derive shared secrets, verify signatures, and authorize Bitcoin transactions.

Read how Real-World Cryptography explains public-private key pair →

Secure APIs

A public-private key pair consists of mathematically related cryptographic keys, with the private key used for signing and the public key used for verification.

How it is used
Supports asymmetric JWT signing, letting issuers sign with a private key and APIs validate with a public key.
How deep it goes
Explains signing roles, OpenSSL generation, Python loading, and validation safeguards, but does not detail cryptographic mathematics.
Examples
Uses an OpenSSL RSA-generation command, PEM key files, Python key loading, and a PyJWT PS256 token-issuance fragment.
What you can do after
Build it from scratch by generating an RSA pair, loading the private key, signing JWTs, and validating them with the public key.

Read how Secure APIs explains public-private key pair →

Build Python Web Apps with Streamlit

A key pair is a matched private key and public key used for asymmetric authentication.

How it is used
Supports authenticated and encrypted SSH access to remote Elastic Beanstalk instances.
How deep it goes
Explains local and remote key roles, but defers public-key cryptography theory and detailed SSH connection instructions.
Examples
Uses an EB CLI initialization transcript showing RSA generation, passphrase entry, and public-key upload.
What you can do after
Operate SSH setup through the EB CLI while keeping the private key secret and uploading only its public counterpart.

Read how Build Python Web Apps with Streamlit explains public-private key pair →

Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

A key pair is a matching public key and private key used for asymmetric authentication to a system.

How it is used
Uses asymmetric authentication when administrators log in to EC2 instances.
How deep it goes
Defines the credential and explains its single-user limitation, but stops short of cryptographic mechanics.
Examples
Demonstrates proceeding without a key pair and connecting to an EC2 instance through Session Manager.
What you can do after
Operate/configure EC2 access by choosing a key pair or replacing it with temporary Session Manager credentials.

Read how Amazon Web Services in Action, Third Edition: An in-depth guide to AWS explains public-private key pair →

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.