aes-wasm-quocanhv
v1.0.4
Published
```js const aes = require('aes128-wasm');
Downloads
1
Readme
Usage
const aes = require('aes-wasm-quocanhv');
aes().then((aesApi) => {
const { enc, dec } = aesApi;
// encrypt and decrypt here
// Length of secret key should be 16, 24 or 32
const cipher = enc(key, plainText, iv, mode);
const plaintext = dec(key, cipherText, iv, mode);
});