Skip to content

Commit

Permalink
fix:The "cfg.salt" parameter don't work
Browse files Browse the repository at this point in the history
  • Loading branch information
Alanscut committed Aug 30, 2021
1 parent ecfe2e4 commit dcc3848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cipher-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
cfg = this.cfg.extend(cfg);

// Derive key and other params
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt);

// Add IV to config
cfg.iv = derivedParams.iv;
Expand Down

0 comments on commit dcc3848

Please sign in to comment.