Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 998b24e

Browse filesBrowse files
anlexNdanielleadams
authored andcommitted
doc: align to function signature
PR-URL: #34930 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
1 parent e4a4f81 commit 998b24e
Copy full SHA for 998b24e

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/crypto.md‎

Copy file name to clipboardExpand all lines: doc/api/crypto.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2880,12 +2880,12 @@ or types.
28802880
```js
28812881
const 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
29382938
const crypto = require('crypto');
29392939
// Using the factory defaults.
2940-
const key1 = crypto.scryptSync('secret', 'salt', 64);
2940+
const key1 = crypto.scryptSync('password', 'salt', 64);
29412941
console.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 });
29442944
console.log(key2.toString('hex')); // '3745e48...aa39b34'
29452945
```
29462946

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.