@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 CHANGED
@@ -189821,7 +189821,7 @@ const nodePlatform = (_a = class {
189821
189821
  return Promise.resolve(crypto__namespace.pbkdf2Sync(password.getKey(), saltBytes, iterations, 32, 'SHA256'));
189822
189822
  }
189823
189823
  static deriveKeyV2(domain, password, saltBytes, iterations) {
189824
- const bytes = crypto__namespace.pbkdf2Sync(Buffer.of(...Buffer.from(domain), ...nodePlatform.unWrapPassword(password.getKey())), saltBytes, iterations, 64, 'SHA512');
189824
+ const bytes = crypto__namespace.pbkdf2Sync(Buffer.of(...Buffer.from(domain), ...nodePlatform.unWrapPassword(password)), saltBytes, iterations, 64, 'SHA512');
189825
189825
  const reducedBytes = crypto__namespace.createHmac("SHA256", bytes).update(Buffer.from(domain)).digest();
189826
189826
  return Promise.resolve(reducedBytes);
189827
189827
  }