@@ -2880,12 +2880,12 @@ or types.
28802880```js
28812881const crypto = require('crypto');
28822882// Using the factory defaults.
2883- crypto.scrypt('secret ', 'salt', 64, (err, derivedKey) => {
2883+ crypto.scrypt('password ', 'salt', 64, (err, derivedKey) => {
28842884 if (err) throw err;
28852885 console.log(derivedKey.toString('hex')); // '3745e48...08d59ae'
28862886});
28872887// Using a custom N parameter. Must be a power of two.
2888- crypto.scrypt('secret ', 'salt', 64, { N: 1024 }, (err, derivedKey) => {
2888+ crypto.scrypt('password ', 'salt', 64, { N: 1024 }, (err, derivedKey) => {
28892889 if (err) throw err;
28902890 console.log(derivedKey.toString('hex')); // '3745e48...aa39b34'
28912891});
@@ -2937,10 +2937,10 @@ or types.
29372937```js
29382938const crypto = require('crypto');
29392939// Using the factory defaults.
2940- const key1 = crypto.scryptSync('secret ', 'salt', 64);
2940+ const key1 = crypto.scryptSync('password ', 'salt', 64);
29412941console.log(key1.toString('hex')); // '3745e48...08d59ae'
29422942// Using a custom N parameter. Must be a power of two.
2943- const key2 = crypto.scryptSync('secret ', 'salt', 64, { N: 1024 });
2943+ const key2 = crypto.scryptSync('password ', 'salt', 64, { N: 1024 });
29442944console.log(key2.toString('hex')); // '3745e48...aa39b34'
29452945```
29462946
0 commit comments