Authenticated encryption protects both the secrecy and the integrity of data, so any tampering with the ciphertext is detected on decryption.
Encryption alone hides content but does not prevent modification: an attacker can flip bits in a ciphertext, and some modes will decrypt to altered plaintext without complaint. Authenticated encryption closes that gap by producing an authentication tag with the ciphertext and verifying it before releasing any plaintext. The standard interface, authenticated encryption with associated data (AEAD), is defined in RFC 5116. It takes a key, a nonce, the plaintext and optional associated data, which is authenticated but not encrypted, such as a header, record ID or version. Binding that context stops an attacker from moving a valid ciphertext into a different record or protocol version. Widely used AEAD algorithms include AES-GCM (NIST SP 800-38D) and ChaCha20-Poly1305 (RFC 8439). Misuse is the main risk: repeating a nonce under one key can destroy security, and skipping the tag check or using unauthenticated modes such as plain CBC invites padding-oracle and bit-flipping attacks. Security guidance such as the OWASP Cryptographic Storage Cheat Sheet recommends AEAD for new designs. BotPassword seals every vault record with an AEAD and to bind identifiers and suite information as associated data, with strict header validation on parsing.