@originjs/crypto-js-wasm
Advanced tools
Comparing version
{ | ||
"name": "@originjs/crypto-js-wasm", | ||
"version": "1.0.0-beta0", | ||
"version": "1.0.0", | ||
"description": "An alternate to crypto-js implemented with WebAssembly and ESM", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -14,3 +14,3 @@ # @originjs/crypto-js-wasm | ||
- **Versatile**: **15+** crypto standards supported, including MD5, SHA-x, AES, RC4, etc | ||
- **ESM**: Crypto standards can be imported as **ES modules** | ||
- **ESM**: Written in ESM, build as UMD for compatibility | ||
@@ -43,4 +43,2 @@ | ||
```javascript | ||
@@ -64,4 +62,8 @@ import CryptoJSW from 'crypto-js-wasm'; | ||
Please note that `HMAC` does not have a `loadWasm`, as a hasher must be specified if you want to use `HMAC` (i.e. `HmacSHA1`). | ||
And the `loadWasm` in `pbkdf2` only calls `SHA1.loadWasm` as `SHA1` is the default hasher of `pbkdf2`. If you specified another hasher, the corresponding `loadWasm` of the hasher should be called repectly. Same case in `evpkdf`/`MD5` as `MD5` is the default hasher of `evpkdf`. | ||
**Available standards** | ||
@@ -68,0 +70,0 @@ |
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
410114
0.24%5875
0.2%1
-50%157
1.29%