symmetric encryption
Encryption where the same secret key both encrypts and decrypts, as with AES.
In more detail
It is fast, so it protects bulk data, but both sides must already share the key, and anyone who can decrypt can also encrypt. Leaking the key from any one party compromises all of them. TLS uses public-key cryptography only to agree on a symmetric key, then switches to symmetric encryption.
Example
HMAC-signed tokens let any verifying service also forge tokens.Related terms
- encryption — Scrambling data with a key so only someone holding the right key can read it.
- AES — The Advanced Encryption Standard: the widely used symmetric encryption algorithm standardised by NIST.
- 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.
- key exchange — The step in which two parties establish a shared secret key over a network, so they can then encrypt their conversation.
- HMAC — A way of combining a secret key with a hash function to produce a tag that shows a message came from someone holding the key and was not changed.
- 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.
- secret — Any value that grants access, such as a password, access token or private key, and must be kept out of code and version control.
- secret key — A value known only to the parties allowed to use it, needed to create or check an HMAC or to encrypt and decrypt data.
- TLS — The encryption that protects data travelling over a network, the S in HTTPS.
Taught in
- CIA Triad, Non-Repudiation & Parkerian Hexad — Cybersecurity Fundamentals, GRC & Cryptography
- Symmetric Encryption: AES-GCM & ChaCha20 — Cybersecurity Fundamentals, GRC & Cryptography
- Asymmetric Cryptography: RSA, ECC & Diffie-Hellman — Cybersecurity Fundamentals, GRC & Cryptography
- Cryptographic Hashing: SHA-256, SHA-3 & Passwords — Cybersecurity Fundamentals, GRC & Cryptography
- Post-Quantum Cryptography & Key Lifecycles — Cybersecurity Fundamentals, GRC & Cryptography
- JWT Verification: Asymmetric Keys & Refresh Rotation — Production Full-Stack Engineering
- Cryptographic Primitives: node:crypto & Ciphers — Node.js Internals & Backend Services
- TLS & HTTPS Encryption: Certificates & SNI Contexts — Node.js Internals & Backend Services