The api docs use 512 for the keylen:
crypto.pbkdf2('secret', 'salt', 4096, 512, 'sha256', function(err, key) {
if (err)
throw err;
console.log(key.toString('hex')); // 'c5e478d...1469e50'
});
But they don't mention whether the keylen is in bits or bytes.
Given the fact that it has a value of 512 I would expect it to be in bits, but the end result seems to generate a key of 512 bytes
Some clarification would be welcome