public-key cryptography
Cryptography that uses a pair of keys: a private key kept secret to sign or decrypt, and a public key that can be shared to verify or encrypt.
In more detail
Something signed with the private key can be verified with the public key, and something encrypted to the public key can only be read with the private key. TLS certificates and SSH keys both rely on it. Possession of the private key is what proves identity.
Related terms
- digital signature — A value computed from data and a secret key that lets anyone with the matching verification key confirm the data came from the key holder and was not changed.
- signing key — The secret key used to sign tokens or messages, together with the key used to verify them, which may be the same secret or the public half of a pair.
- JSON Web Key Set — A standard JSON document that publishes a set of public keys, each with a key identifier, so clients can verify tokens.
- RSA — A widely used public-key algorithm, named after its inventors Rivest, Shamir and Adleman, used for digital signatures and for encrypting small secrets such as keys.
- symmetric encryption — Encryption where the same secret key both encrypts and decrypts, as with AES.
- RS256 — A JSON Web Token signing algorithm that uses an RSA key pair with SHA-256.
- public key — The shareable half of a key pair, used by others to verify your signatures or encrypt data only you can read.
- private key — The secret half of a key pair, which proves its holder's identity and must never be shared.
- TLS certificate — A signed digital document that proves a server really owns a domain name and holds the key used to start encrypted TLS connections.
- SSH key — A key pair used to log in over SSH: the private key stays on your machine and the public key is added to the server account.
Taught in
- JSON Web Tokens — Modern API Architecture: REST, GraphQL & gRPC
- Scopes And Key Rotation — Modern API Architecture: REST, GraphQL & gRPC
- Workload Identity Federation: Eliminating Static Keys — Cloud Security & DevSecOps Engineering
- Supply Chain Security: SBOMs & Cosign Signing — Cloud Security & DevSecOps Engineering
- CloudTrail Logging, Integrity Validation & Athena — Cloud Security & DevSecOps Engineering
- JWT Verification: Asymmetric Keys & Refresh Rotation — Production Full-Stack Engineering
- Certificates, Chains And What A Handshake Proves — Linux Fundamentals & Systems Administration
- SSH Keys, The Agent And The Config File — Linux Fundamentals & Systems Administration
- TLS And The Handshake — Application Security & Threat Modeling for Engineers
- Provenance And Signing — Application Security & Threat Modeling for Engineers