You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
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:
varargs={key: pass,salt: salt,c: 1000,dkLen: 128,klass: undefined// XXX: using triplesec.HMAC_SHA256 of course works!};triplesec.pbkdf2(args,functioncallback(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.