asymmetric cryptography
Cryptography that uses a pair of related keys: a public key that can be shared openly and a private key that its owner keeps secret.
In more detail
What one key does, only the other can undo or check: data encrypted to a public key can be opened only with the private key, and a signature made with the private key can be checked by anyone holding the public key. Key pairs also let strangers agree on a shared secret over a watched network, as in Diffie-Hellman. The maths is much slower than symmetric ciphers, so it is used briefly to set up keys and signatures while AES or ChaCha20 carries the data. RSA and elliptic curve schemes are the common families.
Examples
openssl genpkey -algorithm X25519 -out "$who.key"openssl pkey -in "$who.key" -pubout -out "$who.pub"Related terms
- key pair — Two mathematically linked keys made together: a private key the owner keeps secret and a public key that can be shared with anyone.
- 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.
- hybrid encryption — Combining public-key cryptography, used briefly to set up a shared key, with a fast symmetric cipher that then encrypts the actual data.
Taught in
- Asymmetric Cryptography: RSA, ECC & Diffie-Hellman — Cybersecurity Fundamentals, GRC & Cryptography
- Post-Quantum Cryptography & Key Lifecycles — Cybersecurity Fundamentals, GRC & Cryptography