IntelligenceAlgorithmspbkdf2
PBKDF2
A password-based key derivation function that iterates a pseudorandom function such as HMAC, specified in RFC 8018 and SP 800-132. BIP 39 uses it to turn a mnemonic into a wallet seed, and it is common in password storage and WPA2. Grover's search would roughly halve its effective security, so 256-bit outputs stay adequate.
In short
What a quantum computer changes.
- Quantum effect
- Weakened by Grover's search
- Family
- SymmetricRests on hash function 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.
45 in the catalogue
Packages that provide it
| Package | Provides |
|---|---|
| @noble/hashesnpm | Pure TypeScript hash, MAC and KDF library: SHA-1, SHA-2, SHA-3 and Keccak, BLAKE2 and BLAKE3, RIPEMD-160, HMAC, HKDF, PBKDF2, scrypt and Argon2. |
| hash-wasmnpm | Hash and password-hashing functions compiled to WebAssembly, including SHA-1, SHA-2, SHA-3, Keccak, BLAKE2, BLAKE3, RIPEMD-160, HMAC, PBKDF2, scrypt, bcrypt and Argon2. |
| crypto-jsnpm | Pure JavaScript library of hashes, HMAC, PBKDF2 and ciphers: MD5, SHA-1, SHA-2, a Keccak function it calls SHA3, RIPEMD-160, AES, TripleDES, RC4 and Rabbit. |
| 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. |
| sodium-nativenpm | Low-level native Node.js bindings to libsodium: X25519, Ed25519, XSalsa20-Poly1305 and ChaCha20-Poly1305 encryption, BLAKE2b, SHA-2, HMAC, Argon2 and scrypt, plus a PBKDF2-SHA512 extension. |
| 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. |
| crypto-browserifynpm | Browser port of the Node.js crypto module that re-exports the browserify packages for hashes, HMAC, PBKDF2, AES, Diffie-Hellman, ECDH, RSA and ECDSA signing and RSA encryption. |
| pbkdf2npm | PBKDF2 key derivation with any hash supported by the Node.js crypto API, with a JavaScript fallback for browsers. |
| 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. |
| ethersnpm | Ethereum library with secp256k1 signing, recovery and ECDH, Keccak-256, SHA-2, RIPEMD-160, HMAC, PBKDF2 and scrypt helpers, BIP-39 and BIP-32 wallets, and encrypted JSON keystores. |
| @ethersproject/hdnodenpm | The ethers v5 sub-package for BIP-32 key derivation and BIP-39 mnemonics over secp256k1. |
| @ethersproject/json-walletsnpm | The ethers v5 sub-package that encrypts and decrypts Ethereum keystore and crowdsale JSON wallets with scrypt or PBKDF2, AES and a Keccak-256 MAC. |
| web3npm | Ethereum JavaScript API whose accounts module signs with secp256k1, hashes with Keccak-256 and encrypts V3 keystores with scrypt or PBKDF2 and AES-128-CTR. |
| web3-eth-accountsnpm | The web3.js accounts package: secp256k1 signing and recovery, Keccak-256 message hashing, and V3 keystores encrypted with scrypt or PBKDF2 and AES-128-CTR. |
| viemnpm | TypeScript Ethereum interface with secp256k1 local accounts, BIP-39 and BIP-32 accounts, WebAuthn P-256 accounts, and Keccak-256, SHA-256 and RIPEMD-160 utilities. |
| ethereum-cryptographynpm | Collection of the primitives Ethereum uses: secp256k1, BN254 and BLS12-381 curves, Keccak, SHA-2, RIPEMD-160, BLAKE2b, PBKDF2, scrypt, AES, BIP-32, BIP-39 and random bytes. |
| @ethereumjs/walletnpm | EthereumJS wallet utilities for secp256k1 key creation, BIP-32 HD keys and V3 keystores encrypted with scrypt or PBKDF2 and AES. |
| ethereumjs-walletnpm | The former name of the EthereumJS wallet package: secp256k1 keys and V3 keystores encrypted with scrypt or PBKDF2 and AES. |
| micro-eth-signernpm | Minimal Ethereum library for secp256k1 transaction and message signing, legacy and EIP-2335 keystores, EIP-2333 key derivation, and KZG and PeerDAS blob commitments. |
| @metamask/key-treenpm | MetaMask interface over BIP-39, BIP-32, BIP-44 and SLIP-10 key derivation for secp256k1 and Ed25519 keys. |
| @metamask/browser-passwordernpm | Password-based encryption of JavaScript objects using a PBKDF2-derived key and AES-GCM from the Web Crypto API. |
| bip39npm | BIP-39 mnemonic generation and validation, with a SHA-256 checksum and PBKDF2-HMAC-SHA512 seed derivation. |
| @scure/bip39npm | BIP-39 mnemonic generation and validation, with a SHA-256 checksum and PBKDF2-HMAC-SHA512 seed derivation. |
| @polkadot/util-cryptonpm | Polkadot crypto utilities: sr25519, Ed25519 and secp256k1 keys and signatures, BLAKE2, Keccak, SHA-2, HMAC, PBKDF2, scrypt, NaCl secretbox and encrypted JSON. |
| @polkadot/wasm-cryptonpm | WebAssembly build of the Rust primitives behind @polkadot/util-crypto: sr25519, Ed25519, secp256k1, BLAKE2b, Keccak, SHA-2, HMAC, PBKDF2, scrypt and BIP-39. |
| @cosmjs/cryptonpm | CosmJS cryptography: secp256k1 and Ed25519 signing, SHA-2, Keccak-256, RIPEMD-160, HMAC, BIP-39, SLIP-10, Argon2id and XChaCha20-Poly1305. |
| @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. |
| @taquito/signernpm | Tezos in-memory signer for Ed25519, secp256k1, P-256, BLS and ML-DSA-44 keys, with BIP-39 mnemonics and PBKDF2 and NaCl secretbox encrypted secret keys. |
| @ton/cryptonpm | TON crypto primitives: SHA-256, SHA-512, HMAC-SHA-512, PBKDF2-SHA-512, TON mnemonics, Ed25519 signing, NaCl secret boxes and SLIP-10 Ed25519 HD keys. |
| 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. |
| orioncrates.io | Pure Rust library offering ML-KEM, ML-DSA, X-Wing, HPKE, X25519, (X)ChaCha20-Poly1305, BLAKE2b, BLAKE3, SHA-2, SHA-3, HMAC, HKDF, PBKDF2, Argon2 and scrypt. |
| pbkdf2crates.io | Generic PBKDF2 password-based key derivation (RFC 2898). |
| 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. |
| bip39crates.io | BIP-39 mnemonic phrases in all standard word lists, with seed derivation by PBKDF2-HMAC-SHA512. |
| bip32crates.io | BIP32 hierarchical deterministic key derivation over secp256k1 using HMAC-SHA512, with k256 or libsecp256k1 key backends and optional BIP39 mnemonic seeds. |
| eth-keystorecrates.io | Encrypted JSON keystores in the Web3 Secret Storage format: scrypt or PBKDF2 key derivation, AES-128-CTR encryption and a Keccak-256 MAC. |
2 listed
Sources
- RFC 8018: PKCS #5: Password-Based Cryptography Specification Version 2.1rfc-editor.orgRetrieved 3 December 2026
- SP 800-132: Recommendation for Password-Based Key Derivation: Part 1: Storage Applicationscsrc.nist.govRetrieved 3 December 2026
Full record
- Identifier
- pbkdf2
- Kind
- kdf
- Family
- Symmetric
- Rests on
- hash function security
- Quantum effect
- Weakened by Grover's search
Standards
- SP 800-132Recommendation for Password-Based Key Derivation: Part 1: Storage ApplicationsNIST, final, published 22 December 2010Checked 3 December 2026
- RFC 8018PKCS #5: Password-Based Cryptography Specification Version 2.1IETF, informational, published 1 January 2017Checked 3 December 2026
- BIP 39Mnemonic code for generating deterministic keysBitcoin Improvement Proposals, final, published 10 September 2013Checked 3 December 2026