Files
rspade_system/node_modules/crypto-browserify/test/pbkdf2.js
root bd5809fdbd Reorganize RSpade directory structure for clarity
Improve Jqhtml_Integration.js documentation with hydration system explanation
Add jqhtml-laravel integration packages for traditional Laravel projects

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 09:41:48 +00:00

24 lines
520 B
JavaScript

'use strict';
var tape = require('tape');
var crypto = require('pbkdf2/browser');
var vectors = require('hash-test-vectors/pbkdf2');
tape('pbkdf2', function (t) {
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);
});
t.end();
});