aes-optimal
Version:
AES Encryption Library
24 lines (16 loc) • 431 B
Markdown
Cipher: AES/256/CBC/PKCS7Padding with random generated salt
Works on the node.js and is compatible with React-native
```sh
npm install aes-optimal
```
```js
var AES256 = require('aes-optimal');
// encryption
var encrypted = AES256.encrypt('TEXT', 'PASSWORD')
console.log(encrypted);
// decryption
console.log(AES256.decrypt(encrypted, 'PASSWORD'));
```