IntelligenceAlgorithmsaes-gcm
AES-GCM
AES in Galois/Counter Mode, an authenticated encryption mode specified in SP 800-38D. It protects most TLS and IPsec traffic and is the default AEAD in the Web Crypto API and many libraries. Grover's search would roughly halve its effective key strength, so 256-bit keys stay adequate.
In short
What a quantum computer changes.
- Quantum effect
- Weakened by Grover's search
- Family
- SymmetricRests on block cipher security.
- What it means
- Grover's algorithm searches an unstructured space in roughly the square root of the usual number of steps. Against a symmetric key or a hash preimage, that roughly halves the effective security in bits: a 128-bit key gives about 64 bits of security against it. In practice the answer is size, not replacement. Keys and outputs of 256 bits stay adequate. Grover's search also needs a long, sequential run on a fault-tolerant machine and does not split well across many machines, so the effect is a smaller margin, not a break.
This describes the family, not any project that uses it.
33 in the catalogue
Packages that provide it
| Package | Provides |
|---|---|
| eciesjsnpm | ECIES public-key encryption over secp256k1 or Curve25519 (X25519 or Ed25519 keys), deriving keys with HKDF and encrypting with AES-256-GCM or XChaCha20-Poly1305. |
| @noble/ciphersnpm | Pure TypeScript symmetric cipher library: ChaCha20-Poly1305 and XChaCha20-Poly1305, XSalsa20-Poly1305, AES in GCM, GCM-SIV, SIV, CTR, CBC, CFB, ECB and key-wrap modes, and FF1 format-preserving encryption. |
| sjclnpm | Stanford JavaScript Crypto Library; the default npm build provides AES in CCM, OCB2 and GCM modes, SHA-256, HMAC, PBKDF2 and a Fortuna-style random generator. |
| node-forgenpm | Pure JavaScript cryptography and PKI toolkit: RSA signing and encryption, Ed25519, AES (including GCM), DES and RC2, SHA-1, SHA-2, MD5, HMAC, PBKDF2, a Fortuna-based random generator, X.509, PKCS formats and a TLS implementation. |
| @peculiar/webcryptonpm | WebCrypto API implementation for Node.js on top of the built-in crypto module, adding curves such as secp256k1, brainpool, Ed448 and X448 and non-standard mechanisms such as DES and RSAES-PKCS1-v1_5. |
| browserify-aesnpm | Node-style AES ciphers for browsers in ECB, CBC, CFB, OFB, CTR and GCM modes, using the built-in crypto module in Node.js. |
| josenpm | JWS, JWE, JWT and JWK for Node.js, browsers and other WebCrypto runtimes, with RSA, ECDSA, Ed25519 and ML-DSA signatures, HMAC, RSA-OAEP, ECDH-ES and AES key management, AES-GCM and AES-CBC-HMAC content encryption and PBES2. |
| node-josenpm | JOSE (JWS, JWE, JWK) implementation from Cisco with RSA, ECDSA and ECDH on the NIST P curves, HMAC, AES (GCM, CBC-HMAC and key wrap), HKDF and PBES2. |
| openpgpnpm | OpenPGP.js, a JavaScript implementation of OpenPGP (RFC 9580): RSA, DSA, ECDSA and ECDH on NIST, brainpool and secp256k1 curves, Ed25519, Ed448, X25519 and X448, AES with GCM, OCB and EAX, and Argon2 key derivation. |
| ssh2npm | SSH2 client and server in JavaScript for Node.js, with Curve25519, ECDH and finite-field Diffie-Hellman key exchange, Ed25519, ECDSA, RSA and DSA host keys, AES-GCM, AES-CTR, AES-CBC and ChaCha20-Poly1305 ciphers, and HMAC. |
| hpke-jsnpm | Hybrid Public Key Encryption (RFC 9180) on top of WebCrypto, with DHKEM over P-256, P-384, P-521, X25519 and X448, HKDF-SHA-2, and AES-GCM or ChaCha20-Poly1305. |
| @hpke/corenpm | Core Hybrid Public Key Encryption (RFC 9180) module on WebCrypto, with DHKEM over P-256, P-384, P-521 and X25519, HKDF-SHA-2 and AES-GCM. |
| @metamask/browser-passwordernpm | Password-based encryption of JavaScript objects using a PBKDF2-derived key and AES-GCM from the Web Crypto API. |
| @libp2p/cryptonpm | libp2p key and crypto primitives: Ed25519, secp256k1, ECDSA P-256, P-384 and P-521, and RSA keys, ephemeral ECDH, AES-GCM, HMAC and PBKDF2. |
| @aptos-labs/ts-sdknpm | Aptos TypeScript SDK with Ed25519, secp256k1 and secp256r1 WebAuthn accounts, keyless accounts verified with Groth16 proofs over BN254 and Poseidon, and AES-GCM payload encryption. |
| eciescrates.io | Elliptic Curve Integrated Encryption Scheme over secp256k1 or Curve25519, using HKDF-SHA256 with AES-256-GCM or XChaCha20-Poly1305. |
| ringcrates.io | Cryptographic library largely derived from BoringSSL, offering ECDSA P-256 and P-384, Ed25519, RSA signatures, X25519 and ECDH, AES-GCM, ChaCha20-Poly1305, SHA-1 and SHA-2, HMAC, HKDF, PBKDF2 and a system random generator. |
| aws-lc-rscrates.io | ring-compatible Rust API over the AWS-LC C library, adding ML-KEM, ML-DSA, RSA encryption, raw AES modes and an optional FIPS build. |
| aws-lc-syscrates.io | Low-level generated FFI bindings to the AWS-LC C cryptography library, which aws-lc-rs wraps. |
| opensslcrates.io | Rust bindings to OpenSSL covering TLS, X.509, RSA, DSA, Diffie-Hellman, elliptic curve and Edwards curve keys, symmetric ciphers, hashes, MACs and key derivation. |
| openssl-syscrates.io | Raw FFI declarations for the OpenSSL C library, used by the openssl crate. |
| boringcrates.io | Rust bindings to BoringSSL with TLS support, RSA, DSA, Diffie-Hellman, ECDSA and ECDH, Ed25519 and X25519, ML-KEM, ML-DSA, HPKE, AEAD ciphers, hashes, HMAC and key derivation. |
| mbedtlscrates.io | Rust wrapper for Mbed TLS covering TLS, X.509, RSA, ECDSA, ECDH, Diffie-Hellman, AES and ChaCha20-Poly1305, hashes, HMAC, HKDF, PBKDF2 and DRBG random generators. |
| botancrates.io | Rust wrapper for the Botan C++ library, exposing ciphers, hashes, MACs, KDFs, password hashing, random generators, X.509 and classical and post-quantum public key algorithms. |
| libcruxcrates.io | Re-export crate for the libcrux library of formally verified implementations, including ML-KEM, ML-DSA, X25519, P-256 ECDSA and ECDH, Ed25519, RSA-PSS, AES-GCM, ChaCha20-Poly1305, SHA-2, SHA-3, BLAKE2, HMAC, HKDF and HPKE. |
| sodiumoxidecrates.io | Rust bindings to libsodium: X25519 crypto_box, XSalsa20-Poly1305 secretbox, Ed25519 signatures, ChaCha20-Poly1305 and AES-256-GCM AEADs, SHA-2, BLAKE2b, HMAC, Argon2 and scrypt password hashing. |
| libsodium-syscrates.io | Raw FFI bindings to the libsodium C library, used by sodiumoxide. |
| aes-gcmcrates.io | Pure Rust AES-GCM authenticated encryption with optional hardware acceleration. |
| rustlscrates.io | TLS 1.2 and TLS 1.3 library in Rust whose cryptography comes from a pluggable provider, aws-lc-rs by default or ring. |
| hpkecrates.io | Pure Rust Hybrid Public Key Encryption (RFC 9180) with X25519 and NIST P-curve DHKEMs, ML-KEM and X-Wing KEMs, HKDF or SHAKE KDFs and AES-GCM or ChaCha20-Poly1305. |
| snowcrates.io | Pure Rust implementation of the Noise Protocol Framework with 25519, AES-GCM, ChaCha20-Poly1305, SHA-2, BLAKE2 and optional P-256 and BLAKE3. |
| sequoia-openpgpcrates.io | OpenPGP (RFC 9580 and RFC 4880) implementation with RSA, DSA, ECDSA, ECDH, EdDSA, X25519 and X448 keys, post-quantum ML-KEM, ML-DSA and SLH-DSA algorithms, AES and SHA-1, SHA-2 and SHA-3 hashes. |
| josekitcrates.io | JOSE library (JWT, JWS, JWE, JWK) with HMAC, RSA, ECDSA, EdDSA, ECDH-ES, AES key wrap, AES-GCM and PBES2, backed by OpenSSL, AWS-LC or pure Rust crates. |
2 listed
Sources
- SP 800-38D: Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMACcsrc.nist.govRetrieved 3 December 2026
- FIPS 197: Advanced Encryption Standard (AES)csrc.nist.govRetrieved 3 December 2026
Full record
- Identifier
- aes-gcm
- Kind
- aead
- Family
- Symmetric
- Rests on
- block cipher security
- Quantum effect
- Weakened by Grover's search
Standards
- FIPS 197Advanced Encryption Standard (AES)NIST, final, published 26 November 2001Checked 3 December 2026
- SP 800-38DRecommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMACNIST, final, published 28 November 2007Checked 3 December 2026