Comparing version 2.0.4 to 2.1.0
@@ -5,3 +5,3 @@ import { | ||
} from './core.js'; | ||
import { SHA1Algo } from './sha1.js'; | ||
import { SHA256Algo } from './sha256.js'; | ||
import { HMAC } from './hmac.js'; | ||
@@ -29,6 +29,9 @@ | ||
* Configuration options. | ||
* | ||
* The default `hasher` and `interations` is different from CryptoJs to enhance security: | ||
* https://github.com/entronad/crypto-es/security/advisories/GHSA-mpj8-q39x-wq5h | ||
* | ||
* @property {number} keySize The key size in words to generate. Default: 4 (128 bits) | ||
* @property {Hasher} hasher The hasher to use. Default: SHA1 | ||
* @property {number} iterations The number of iterations to perform. Default: 1 | ||
* @property {Hasher} hasher The hasher to use. Default: SHA256 | ||
* @property {number} iterations The number of iterations to perform. Default: 250000 | ||
*/ | ||
@@ -39,4 +42,4 @@ this.cfg = Object.assign( | ||
keySize: 128 / 32, | ||
hasher: SHA1Algo, | ||
iterations: 1, | ||
hasher: SHA256Algo, | ||
iterations: 250000, | ||
}, | ||
@@ -43,0 +46,0 @@ cfg, |
{ | ||
"name": "crypto-es", | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"description": "A cryptography algorithms library compatible with ES6 and TypeScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
240135
74
7396