How to use the pbkdf2/browser.pbkdf2Sync function in pbkdf2

To help you get started, we’ve selected a few pbkdf2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tradle / react-native-crypto / test / pbkdf2.js View on Github external
vectors.forEach(function (input) {
    // skip inputs that will take way too long
    if (input.iterations > 10000) return

    var key = crypto.pbkdf2Sync(input.password, input.salt, input.iterations, input.length)

    if (key.toString('hex') !== input.sha1) {
      console.log(input)
    }

    t.equal(key.toString('hex'), input.sha1)
  })
github webkey-auth / webkey-auth.github.io / utils.js View on Github external
function createKey(salt, password) {
    return pbkdf2.pbkdf2Sync(password, salt, 5, 256 / 8, 'sha512')
}
function scriptOrigin() {

pbkdf2

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

MIT
Latest version published 3 years ago

Package Health Score

71 / 100
Full package analysis