@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@keeper-security/keeperapi",
3
3
  "description": "Keeper API Javascript SDK",
4
- "version": "16.0.56",
4
+ "version": "16.0.57",
5
5
  "browser": "dist/index.es.js",
6
6
  "main": "dist/index.cjs.js",
7
7
  "types": "dist/node/index.d.ts",
@@ -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.getKey())), saltBytes, iterations, 64, 'SHA512')
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
  }