CRYPTOGRAPHY / KNOWLEDGE
Encryption, decryption, encoding & decoding
Explore 105 cryptographic and encoding technologies across seven categories and 14 comparison dimensions. Understand the difference between encryption, authentication, hashing and encoding.
Compare technologies
Choose two or three different technologies.
| Comparison dimensions | AES-GCM ↗ | ChaCha20-Poly1305 ↗ |
|---|---|---|
| Category | Cipher modes and AEAD | Cipher modes and AEAD |
| Definition and overview | AES-GCM is a GCM mode that provides authenticated encryption with associated data (AEAD). | ChaCha20-Poly1305 is an authenticated encryption algorithm supporting associated data (AEAD). |
| Classification and reversibility | Classified as AEAD; decryption requires successful authentication. | Classified as AEAD; a key holder can decrypt. |
| Key or secret requirements | A secret symmetric key is required; AES keys of 128, 192 or 256 bits are used. | The 256-bit secret key is the only secret input and must remain confidential. |
| Operating principle and structure | Encrypts in CTR mode and calculates an authentication tag with operations in GF(2^128). | Combines the ChaCha20 stream cipher and Poly1305 MAC in an encrypt-then-MAC construction; verifies the tag before decryption. |
| Key size, block size and parameters | AES has a 128-bit block size and supports 128-, 192- and 256-bit keys. | Inputs are a 256-bit key, 96-bit nonce, arbitrary-length AAD and message. |
| Security strength and recommendation | NIST decided to remove support for authentication tags shorter than 96 bits in its revision of SP 800-38D. | Widely used and deployed; described in the survey as required in TLS implementations, but not NIST-approved. |
| Known attacks and vulnerabilities | Nonce or IV reuse can lead to key exposure; attacks such as the Forbidden Attack are known. | Nonce reuse destroys confidentiality and authentication; nonces must be unique per key. |
| Standards and certification | NIST SP 800-38D is the standard document for GCM and GMAC. | Standardized in IETF RFC 8439. |
| Typical uses | Used to protect stored data, database fields and inter-service messages. | Used in IETF protocols such as TLS, described by the survey as a required implementation. |
| Implementations, libraries and tools | Can be implemented with the AESGCM class in Python's cryptography library, among others. | Available through the ChaCha20Poly1305 class in Python's cryptography library. |
| Decryption or decoding | Verifies authentication during decryption and returns an error on failure. | Decrypt only after verifying the authentication tag with the same key, nonce and AAD. |
| Advantages | Fast, standardized and supported by most cryptographic libraries. | High performance on modern CPUs and suitable for large streams. |
| Limitations and cautions | Pay attention to short tags and IV uniqueness requirements. | Never reuse a nonce with the same key. |
| Distinguishing encryption, encoding and hashing | This is encryption requiring a secret key, distinct from keyless encoding and one-way hashing. | AEAD provides both encryption and authentication, distinct from simple encoding and hashing. |
Browse by category
105 Technologies
Symmetric ciphers (block and stream)
AES is a symmetric cipher that transforms plaintext into ciphertext of the same size.
Full translationDES is a symmetric block cipher that uses the same binary key.
Full translation3DES (TDES/TDEA) is a symmetric block cipher that applies DES three times to each data block.
Full translationA symmetric block cipher designed by Bruce Schneier in 1993.
Full translationTwofish is a symmetric block cipher with 128-bit blocks and variable key lengths up to 256 bits.
Full translationSerpent is a 128-bit block cipher developed by Ross Anderson and others; it was an AES competition candidate.
Full translationCamellia is a symmetric 128-bit block cipher jointly developed by NTT and Mitsubishi Electric in 2000.
Full translationChaCha20 is a stream cipher developed by Daniel J. Bernstein.
Full translationSalsa20 is a symmetric stream cipher by Daniel J. Bernstein that expands a 256-bit key into a large keystream.
Full translationRC4 is a stream cipher that generates a pseudorandom keystream.
Full translationRC5 is a fast symmetric block cipher suitable for hardware and software implementations.
Full translationIDEA is a symmetric cipher operating on 64-bit blocks.
Full translationCAST-128 (CAST5) is a symmetric block cipher used in various products.
Full translationSEED is a 128-bit symmetric block cipher developed by KISA.
Full translationARIA is a 128-bit block cipher supporting 128-, 192- and 256-bit keys.
Full translationLEA is a lightweight cipher developed by NSRI in 2013 for big-data, cloud and mobile environments.
Full translationHIGHT is a lightweight symmetric block cipher for resource-constrained devices, with 64-bit blocks and 128-bit keys.
Full translationSM4 is a symmetric block cipher using 128-bit blocks and keys.
Full translationA 128-bit block cipher defined by Russian national standard GOST R 34.12-2015 (RFC 7801).
Full translationAn ultra-lightweight block cipher designed by Bogdanov and others in 2007.
Full translationLightweight block cipher families published by the NSA, with variants of different block and key sizes.
Full translationXTEA is an extended block cipher designed to address weaknesses in TEA.
Full translationA one-time pad, also called a Vernam cipher, combines a message with a pre-shared key used only once.
Full translationAscon is a lightweight cryptographic family offering AEAD, hashing and XOFs for constrained devices.
Full translationCipher modes and AEAD
AES-GCM is a GCM mode that provides authenticated encryption with associated data (AEAD).
Full translationCBC encrypts fixed-length blocks by XORing each plaintext block with the preceding ciphertext block before encryption.
Full translationA block cipher mode that encrypts counters to generate a keystream, which is XORed with plaintext.
Full translationA tweakable block cipher mode that encrypts storage sectors without changing their size.
Full translationCCM is a block cipher mode defined to provide confidentiality and authenticity.
Full translationChaCha20-Poly1305 is an authenticated encryption algorithm supporting associated data (AEAD).
Full translationAES-GCM-SIV is an AEAD scheme resistant to nonce misuse.
Full translationECB is the simplest block cipher mode and encrypts plaintext blocks independently.
Full translationFormat-preserving encryption converts data into ciphertext with the same format and length as the original.
Full translationEnvelope encryption protects a data key by encrypting it with a separate key-encryption key (KEK).
Full translationAsymmetric encryption, signatures and key exchange
RSA is a prominent asymmetric cryptosystem named after Rivest, Shamir and Adleman.
Full translationOAEP is a padding scheme for RSA encryption proposed by Bellare and Rogaway and standardized in PKCS #1 v2/RFC 2437.
Full translationRSA-PSS is a signature algorithm using secure padding for RSA signatures, intended to replace RSA-PKCS#1 v1.5 signatures.
Full translationDiffie-Hellman (DH) is an asymmetric key-agreement method for establishing a shared secret between two parties.
Full translationECDH is a key-agreement protocol using elliptic-curve key pairs to establish a shared secret between two parties.
Full translationX25519 is a key-exchange method using point operations on the Curve25519 elliptic curve.
Full translationAn elliptic-curve digital signature scheme, and the elliptic-curve variant of DSA.
Full translationEdDSA is a digital signature scheme instantiated with Ed25519 or Ed448 parameters.
Full translationDSA is a public-key system for digital signatures and a federal standard.
Full translationElGamal is a public-key encryption scheme proposed as an alternative to RSA.
Full translationECIES is a hybrid public-key encryption scheme proposed by Victor Shoup in 2001.
Full translationA Chinese national elliptic-curve public-key cryptographic family defined in GB/T 32918.
Full translationKCDSA is a certificate-based signature algorithm developed by KISA, a variant of ElGamal; EC-KCDSA is its elliptic-curve version.
Full translationA probabilistic asymmetric public-key encryption scheme proposed by Pascal Paillier in 1999.
Full translationHashes, MACs and key derivation
SHA-1 is a hash function mapping arbitrary-length input to a 160-bit message digest.
Full translationSHA-2 is a family of cryptographic hash functions including SHA-224/256/384/512 and SHA-512/224, SHA-512/256.
Full translationSHA-3 is a family of hash functions for binary data, based on instances of Keccak.
Full translationMD5 maps arbitrary-length input to a fixed 128-bit message digest.
Full translationBLAKE2 is a cryptographic hash function with two basic forms, BLAKE2b and BLAKE2s.
Full translationBLAKE3 is specified as a fast, highly parallelizable cryptographic hash primitive.
Full translationA cryptographic hash function developed in South Korea in 2014 for integrity protection on general-purpose CPUs in PCs and smart devices.
Full translationHMAC is a keyed message authentication code based on a cryptographic hash function.
Full translationA block-cipher-based MAC that uses a symmetric block cipher to authenticate data and protect integrity.
Full translationPoly1305 is an authenticator (MAC) that takes a 32-byte key and message and produces a 16-byte tag.
Full translationA password-hashing scheme called bcrypt, based on Blowfish.
Full translationA memory-hard key derivation function deriving a secret key from a secret string such as a password.
Full translationArgon2 is a memory-hard function used for password hashing and proof of work.
Full translationPBKDF2 is a widely used key derivation function that derives cryptographic keys from passwords.
Full translationHKDF is a KDF that derives one or more cryptographically strong secret keys from initial keying material.
Full translationAdvanced and next-generation cryptography
ML-KEM is the FIPS 203 key encapsulation mechanism (KEM) standard for establishing a shared secret over a public channel.
Full translationNot confirmed in the survey
Full translationSLH-DSA is a stateless hash-based digital signature scheme.
Full translationFalcon/FN-DSA is an NTRU lattice-based signature scheme using the GPV hash-and-sign structure.
Full translationA code-based post-quantum KEM whose public key specifies a random binary Goppa code.
Full translationAn encryption scheme that allows computation on data while it remains encrypted.
Full translationA threshold secret-sharing scheme distributing secret D into n shares and reconstructing it from at least k shares.
Full translationA zk-SNARK proves that a computation has a given output while hiding part of its input, using a succinct, non-interactive and quickly verifiable proof.
Full translationA QKD protocol in which two parties prepare and measure quantum states to establish a classical secret key unknown to third parties.
Full translationAn encryption scheme combining a key encapsulation mechanism (KEM) with a data encapsulation mechanism (DEM), called hybrid encryption.
Full translationCryptographic protocols and formats
TLS 1.3 authenticates peers, negotiates cryptographic algorithms and parameters, and establishes shared keying material through a handshake; its record protocol protects traffic.
Full translationSSH is a cryptographic protocol establishing a secure channel over an insecure network.
Full translationIPsec is a suite of protocols for secure communication between two sites over the Internet.
Full translationOpenPGP is a widely used cryptographic protocol and format defining IETF-standard cryptographic operations.
Full translationA cryptographic protocol recommended for end-to-end email authentication and confidentiality.
Full translationThe Double Ratchet algorithm, central to the Signal Protocol, supports encrypted messaging between two parties based on shared secret keys.
Full translationWireGuard is a cryptographic protocol using the Noise framework's Noise_IK handshake.
Full translationJWE is a JSON-based encryption format that encrypts a payload so only its recipient can read it.
Full translationEncoding and decoding
An encoding scheme converting binary data into printable text.
Full translationBase32 is a text encoding using 32 characters to represent 5 bits at a time.
Full translationBase16 is hexadecimal encoding representing binary data with the characters 0–9 and A–F.
Full translationA family of binary-to-text encodings using 58 alphanumeric symbols.
Full translationAscii85 (Base85) is a binary-to-text encoding representing binary data as text.
Full translationA URL encoding scheme representing arbitrary data in URIs using only permitted US-ASCII characters.
Full translationUTF-8 is a variable-length, byte-based character encoding preserving ASCII transparency.
Full translationUTF-16 represents characters using one or two 16-bit code units depending on the Unicode value.
Full translationASCII is a character encoding standard for electronic communication assigning 7-bit integers (0–127) to 128 characters.
Full translationPunycode is an ASCII-compatible transfer encoding syntax for IDNA.
Full translationA MIME transfer encoding that keeps predominantly ASCII data human-readable.
Full translationCharacter sequences in HTML documents used to represent reserved or special characters.
Full translationPEM encodes binary data as ASCII text using Base64 enclosed by BEGIN/END labels.
Full translationDER is a subset of BER that restricts its flexibility, providing ASN.1 binary encoding rules.
Full translationCBOR (Concise Binary Object Representation) is a binary serialization format standardized in RFC 8949.
Full translationGoogle's binary format and mechanism for language- and platform-neutral serialization of structured data.
Full translationROT13 is a simple substitution cipher replacing each Latin alphabet letter with the letter 13 positions later.
Full translationHuffman coding is lossless compression that uses symbol frequencies to construct a minimum-redundancy binary prefix code.
Full translationRLE is lossless compression representing runs of identical values by the value and repetition count.
Full translationDEFLATE is a compression format and algorithm known as the compression algorithm used in zlib.
Full translationReed-Solomon is an error-correcting code treating data as blocks of finite-field symbols and detecting and correcting multiple symbol errors.
Full translationCRC detects transmission or storage errors by appending a fixed-length value computed from a data block.
Full translationHamming codes are a family of linear error-correcting codes that append parity to data to correct errors.
Full translationBech32 is an encoding format consisting of a human-readable part (HRP), the separator '1', and a data part.
Full translation