@keeper-security/keeperapi 16.0.56 → 16.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/package.json +1 -1
- package/src/node/platform.ts +1 -1
package/package.json
CHANGED
package/src/node/platform.ts
CHANGED
|
@@ -301,7 +301,7 @@ export const nodePlatform: Platform = class {
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
static deriveKeyV2(domain: string, password: KeyWrapper, saltBytes: Uint8Array, iterations: number): Promise<Uint8Array> {
|
|
304
|
-
const bytes = crypto.pbkdf2Sync(Buffer.of(...Buffer.from(domain), ...nodePlatform.unWrapPassword(password
|
|
304
|
+
const bytes = crypto.pbkdf2Sync(Buffer.of(...Buffer.from(domain), ...nodePlatform.unWrapPassword(password)), saltBytes, iterations, 64, 'SHA512')
|
|
305
305
|
const reducedBytes = crypto.createHmac("SHA256", bytes).update(Buffer.from(domain)).digest()
|
|
306
306
|
return Promise.resolve(reducedBytes);
|
|
307
307
|
}
|