Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)
})
function createKey(salt, password) {
return pbkdf2.pbkdf2Sync(password, salt, 5, 256 / 8, 'sha512')
}
function scriptOrigin() {