Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 8, 2024 via pnpm

pbkdf2 3.1.2

This library provides the functionality of PBKDF2 with the ability to use any supported hashing algorithm returned from crypto.getHashes()
Package summary
Share
0
issues
3
licenses
11
MIT
1
ISC
1
(MIT AND BSD-3-Clause)
Package created
3 Feb 2014
Version published
9 Apr 2021
Maintainers
6
Total deps
13
Direct deps
5
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
11 Packages, Including:
cipher-base@1.0.4
create-hash@1.2.0
create-hmac@1.1.7
hash-base@3.1.0
md5.js@1.3.5
pbkdf2@3.1.2
readable-stream@3.6.2
ripemd160@2.0.2
safe-buffer@5.2.1
string_decoder@1.3.0
util-deprecate@1.0.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
inherits@2.0.4

(MIT AND BSD-3-Clause)

Permissive
1 Packages, Including:
sha.js@2.4.11
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

5
All Dependencies CSV
β“˜ This is a list of pbkdf2 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
create-hash1.2.02.39 kBMIT
prod
create-hmac1.1.72.37 kBMIT
prod
ripemd1602.0.23.69 kBMIT
prod
safe-buffer5.2.19.74 kBMIT
prod
sha.js2.4.119.74 kB(MIT AND BSD-3-Clause)
prod

Visualizations

Frequently Asked Questions

What does pbkdf2 do?

PBKDF2 is a JavaScript library that provides the functionality of Password-Based Key Derivation Function 2 (PBKDF2). This technique provides cryptographic security by creating derived keys from a given password and salt. Interestingly, PBKDF2 supports any hashing algorithm returned from crypto.getHashes(). This versatility enhances its application in diverse cryptographic operations requiring supported hashing algorithms.

How do you use pbkdf2?

You can conveniently use PBKDF2 in your JavaScript projects by first installing the module from the npm registry using the command npm install pbkdf2. After installation, you will require the library in your project file. For example:

var pbkdf2 = require('pbkdf2')

Then, call the pbkdf2Sync function, providing necessary arguments including the password, salt, number of iterations, key length, and digest.

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

For optimal performance, consider using the asynchronous variant (pbkdf2.pbkdf2), especially when browserified, as it enables the utilization of window.crypto.subtle.

Where are the pbkdf2 docs?

For a comprehensive understanding of the PBKDF2 library, refer to the Node.js documentation specific to this package, which is readily available at the following URL: https://nodejs.org/api/crypto.html#crypto_crypto_pbkdf2_password_salt_iterations_keylen_digest_callback. This resource provides a detailed, structured, and up-to-date information guide on how to adopt and effectively use the PBKDF2 library in your JavaScript projects.