diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 8bafbfe791b231..952992803ea560 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1616,9 +1616,9 @@ Example: ```js const crypto = require('crypto'); -crypto.pbkdf2('secret', 'salt', 100000, 512, 'sha512', (err, derivedKey) => { +crypto.pbkdf2('secret', 'salt', 100000, 64, 'sha512', (err, derivedKey) => { if (err) throw err; - console.log(derivedKey.toString('hex')); // '3745e48...aa39b34' + console.log(derivedKey.toString('hex')); // '3745e48...08d59ae' }); ``` @@ -1668,8 +1668,8 @@ Example: ```js const crypto = require('crypto'); -const key = crypto.pbkdf2Sync('secret', 'salt', 100000, 512, 'sha512'); -console.log(key.toString('hex')); // '3745e48...aa39b34' +const key = crypto.pbkdf2Sync('secret', 'salt', 100000, 64, 'sha512'); +console.log(key.toString('hex')); // '3745e48...08d59ae' ``` An array of supported digest functions can be retrieved using