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

Taught in

References