cipher
An algorithm for encrypting and decrypting data, such as AES; a mode, such as GCM, says how it is applied to data longer than one block.
In more detail
The choice of mode matters as much as the cipher: some modes also detect tampering, others do not. Well-studied ciphers such as AES are safe; home-made ones almost never are.
Examples
cmd = ["openssl", "enc", "-aes-256-ctr", "-K", KEY, "-iv", IV]ALG = "ChaCha20-Poly1305"Related terms
- AES — The Advanced Encryption Standard: the widely used symmetric encryption algorithm standardised by NIST.
- block cipher mode — The method for using a block cipher such as AES on data longer than one block, such as CBC or GCM.
- symmetric encryption — Encryption where the same secret key both encrypts and decrypts, as with AES.
- keystream — A stream of random-looking bytes made from a key and a nonce, which a stream cipher combines with the message using XOR to encrypt it.
- Galois/Counter Mode — A mode of using a block cipher such as AES that both encrypts data and produces an authentication tag to detect any tampering.
- cipher block chaining — An older block cipher mode that mixes each block with the previous one; it hides data but does not detect tampering by itself.
- cipher suite — The named set of algorithms a TLS connection uses for key exchange, encryption and integrity, agreed during the handshake.
Taught in
- Symmetric Encryption: AES-GCM & ChaCha20 — Cybersecurity Fundamentals, GRC & Cryptography
- Asymmetric Cryptography: RSA, ECC & Diffie-Hellman — Cybersecurity Fundamentals, GRC & Cryptography
- Post-Quantum Cryptography & Key Lifecycles — Cybersecurity Fundamentals, GRC & Cryptography
- Cryptographic Primitives: node:crypto & Ciphers — Node.js Internals & Backend Services
- Transform Streams: Custom Packet Decoding & Codecs — Node.js Internals & Backend Services
- TLS & HTTPS Encryption: Certificates & SNI Contexts — Node.js Internals & Backend Services