pbkdf2 (3.1.3)

Published 2026-02-24 14:02:36 +00:00 by atheaadmin

Installation

registry=
npm install pbkdf2@3.1.3
"pbkdf2": "3.1.3"

About this package

pbkdf2 Version Badge

This library provides the functionality of PBKDF2 with the ability to use any supported hashing algorithm returned from crypto.getHashes()

github actions coverage dependency status dev dependency status License Downloads

npm badge

Usage

var pbkdf2 = require('pbkdf2')
var derivedKey = pbkdf2.pbkdf2Sync('password', 'salt', 1, 32, 'sha512')

...

For more information on the API, please see the relevant Node documentation.

For high performance, use the async variant (pbkdf2.pbkdf2), not pbkdf2.pbkdf2Sync; this variant has the oppurtunity to use window.crypto.subtle when browserified.

Credits

This module is a derivative of cryptocoinjs/pbkdf2-sha256, so thanks to JP Richardson for laying the ground work.

Thank you to FangDun Cai for donating the package name on npm, if you're looking for his previous module it is located at fundon/pbkdf2.

Dependencies

Dependencies

ID Version
create-hash ~1.1.3
create-hmac ^1.1.7
ripemd160 =2.0.1
safe-buffer ^5.2.1
sha.js ^2.4.11
to-buffer ^1.2.0

Development Dependencies

ID Version
@ljharb/eslint-config ^21.1.1
auto-changelog ^2.5.0
benchmark ^2.1.4
browserify ^17.0.1
encoding ^0.1.13
eslint =8.8.0
npmignore ^0.3.1
nyc ^10.3.2
object.assign ^4.1.7
semver ^6.3.1
tape ^5.9.0

Keywords

pbkdf2 kdf salt hash
Details
npm
2026-02-24 14:02:36 +00:00
1
Daniel Cousens
MIT
latest
13 KiB
Assets (1)
Versions (1) View all
3.1.3 2026-02-24