UNPKG

aes-optimal

Version:
24 lines (16 loc) 431 B
# 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 ```sh npm install aes-optimal ``` ## Usage ```js var AES256 = require('aes-optimal'); // encryption var encrypted = AES256.encrypt('TEXT', 'PASSWORD') console.log(encrypted); // decryption console.log(AES256.decrypt(encrypted, 'PASSWORD')); ```