Skip to content

Commit fe304a5

Browse files
adibitonMaledong
authored andcommitted
fix: add the mandatory parameter pbkdf2 method (#2189)
Because 'sha512' is a must parameter, make up for the digest argument for pbkdf2 method.
1 parent 3e3b547 commit fe304a5

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

locale/en/docs/guides/simple-profiling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ app.get('/auth', (req, res) => {
228228
return res.sendStatus(400);
229229
}
230230

231-
crypto.pbkdf2(password, users[username].salt, 10000, 512, (err, hash) => {
231+
crypto.pbkdf2(password, users[username].salt, 10000, 512, 'sha512', (err, hash) => {
232232
if (users[username].hash.toString() === hash.toString()) {
233233
res.sendStatus(200);
234234
} else {

locale/fa/docs/guides/simple-profiling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ app.get('/auth', (req, res) => {
228228
return res.sendStatus(400);
229229
}
230230

231-
crypto.pbkdf2(password, users[username].salt, 10000, 512, (err, hash) => {
231+
crypto.pbkdf2(password, users[username].salt, 10000, 512, 'sha512', (err, hash) => {
232232
if (users[username].hash.toString() === hash.toString()) {
233233
res.sendStatus(200);
234234
} else {

locale/it/docs/guides/simple-profiling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ app.get('/auth', (req, res) => {
228228
return res.sendStatus(400);
229229
}
230230

231-
crypto.pbkdf2(password, users[username].salt, 10000, 512, (err, hash) => {
231+
crypto.pbkdf2(password, users[username].salt, 10000, 512, 'sha512', (err, hash) => {
232232
if (users[username].hash.toString() === hash.toString()) {
233233
res.sendStatus(200);
234234
} else {

locale/ja/docs/guides/simple-profiling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ app.get('/auth', (req, res) => {
228228
return res.sendStatus(400);
229229
}
230230

231-
crypto.pbkdf2(password, users[username].salt, 10000, 512, (err, hash) => {
231+
crypto.pbkdf2(password, users[username].salt, 10000, 512, 'sha512', (err, hash) => {
232232
if (users[username].hash.toString() === hash.toString()) {
233233
res.sendStatus(200);
234234
} else {

locale/ko/docs/guides/simple-profiling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ app.get('/auth', (req, res) => {
442442
return res.sendStatus(400);
443443
}
444444
445-
crypto.pbkdf2(password, users[username].salt, 10000, 512, (err, hash) => {
445+
crypto.pbkdf2(password, users[username].salt, 10000, 512, 'sha512', (err, hash) => {
446446
if (users[username].hash.toString() === hash.toString()) {
447447
res.sendStatus(200);
448448
} else {

locale/zh-cn/docs/guides/simple-profiling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ app.get('/auth', (req, res) => {
174174
return res.sendStatus(400);
175175
}
176176

177-
crypto.pbkdf2(password, users[username].salt, 10000, 512, (err, hash) => {
177+
crypto.pbkdf2(password, users[username].salt, 10000, 512, 'sha512', (err, hash) => {
178178
if (users[username].hash.toString() === hash.toString()) {
179179
res.sendStatus(200);
180180
} else {

0 commit comments

Comments
 (0)