Perhaps I am "doing it wrong" (it happens a lot), but the pbkdf2 function returns a 16 byte zeroed out key if an undefined klass is passed in as an argument:
var args = {
key: pass,
salt: salt,
c: 1000,
dkLen: 128,
klass: undefined // XXX: using triplesec.HMAC_SHA256 of course works!
};
triplesec.pbkdf2(args, function callback (key) {
console.log('PBKDF2 callback key: ', key); // this key is basically [0,0,0,0,0,0,0...]
});
btw: I would be happy to produce some clear usage examples if you have a place for them.
Perhaps I am "doing it wrong" (it happens a lot), but the pbkdf2 function returns a 16 byte zeroed out key if an undefined klass is passed in as an argument:
btw: I would be happy to produce some clear usage examples if you have a place for them.