aes-optimal
v0.1.0
Published
AES Encryption Library
Downloads
174
Readme
AES Optimal - Encryption Library (Node.js)
Cipher: AES/256/CBC/PKCS7Padding with random generated salt
Works on the node.js and is compatible with React-native
Installation
npm install aes-optimal
Usage
var AES256 = require('aes-optimal');
// encryption
var encrypted = AES256.encrypt('TEXT', 'PASSWORD')
console.log(encrypted);
// decryption
console.log(AES256.decrypt(encrypted, 'PASSWORD'));