aes-cryptojs
v1.0.3
Published
aes
Downloads
7
Readme
aes-cryptojs
Install
npm i aes-cryptojs
# or
yarn add aes-cryptojs
How to encrypt ?
import { encrypt } from "aes-cryptojs";
let data = {
key: `value`
};
// or
let data = 'jack'
data = encrypt(data, {
iv: `abcde`,
secret: `123456`
});
How to decrypt ?
import { decrypt } from "aes-cryptojs";
let data = await http("to request");
data = decrypt(data, {
iv: `abcde`,
secret: `123456`
});
// typeof data === 'object' || 'string'