Authenticated encryption
Encryption alone hides a message but does not stop an attacker flipping its bits, so modern protocols use an AEAD such as AES-GCM or ChaCha20-Poly1305, which encrypts and authenticates together and rejects anything altered, as long as a nonce is never reused with the same key.