Symmetric Encryption
Symmetric encryption is a type of encryption where only one key (a secret key) is used to both encrypt and decrypt electronic information. The entities communicating must exchange the key so that it can be used in the decryption process.
Order of preference
- KMS
- Well-Known Libraries
Chacha20-Poly1305
AES-GCM
AES-CTR
withHMAC
☠️ AVOID THESE
AES-CBC
,AES-CTR
by itself- Block ciphers with 64-bit blocks, such as
Blowfish
. - OFB mode
RC4
(comically broken)