ChaCha20-Poly1305
An authenticated encryption scheme that pairs the ChaCha20 stream cipher with the Poly1305 authenticator, and runs fast even on devices without AES hardware.
In more detail
It uses a 256-bit key and a 96-bit nonce, and like AES-GCM it produces ciphertext plus a 16-byte tag that must verify before any plaintext is released. Because it needs no special processor instructions it is popular on phones and small devices, and it is one of the cipher suites in TLS 1.3. Reusing a nonce under the same key leaks plaintext, just as it does with other stream-based modes.
Examples
ALG = "ChaCha20-Poly1305"recovered without the key: new door code is 7713, change FridayRelated terms
- AEAD — Authenticated encryption with associated data: encryption that keeps data secret and also detects any change to it or to an attached readable header.
- AES-GCM — AES in Galois/Counter Mode: the most widely used way to encrypt data so that it stays secret and any tampering is detected.
- nonce reuse — The mistake of encrypting two messages with the same key and the same nonce, which can expose both messages and allow forgeries.
- 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.
Taught in
- Symmetric Encryption: AES-GCM & ChaCha20 — Cybersecurity Fundamentals, GRC & Cryptography
- Asymmetric Cryptography: RSA, ECC & Diffie-Hellman — Cybersecurity Fundamentals, GRC & Cryptography
- The Certificate That Expired On A Sunday: Hashes, Encryption And Certificates — CompTIA Linux+ (XK0-006) Exam Prep