Skip to content

Commit 00a63e6

Browse files
committed
Fix bug with pbkdf2 expression of salt parameter.
1 parent 62ddebd commit 00a63e6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# bedrock-web-authn-token ChangeLog
22

3+
## 7.0.1 - 2025-mm-dd
4+
5+
### Fixed
6+
- Fix bug with pbkdf2 expression of salt parameter.
7+
38
## 7.0.0 - 2023-10-16
49

510
### Changed

lib/pbkdf2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
2+
* Copyright (c) 2018-2025 Digital Bazaar, Inc. All rights reserved.
33
*/
44
import * as base64url from 'base64url-universal';
55
import crypto from './crypto.js';
@@ -72,7 +72,7 @@ function _serializePhc({phc}) {
7272
}
7373

7474
function _fromBase64NoPad(string) {
75-
return base64url.decode(string.replace(/\+/g, '-').replace(/\//, '_'));
75+
return base64url.decode(string.replace(/\+/g, '-').replace(/\//g, '_'));
7676
}
7777

7878
function _toBase64NoPad(buffer) {

0 commit comments

Comments
 (0)