simple-aes
; // the key length can be 128, 192 or 256 bits// the key can be a Buffer or a hex string, but MUST match the key lengthconst aes = 192 '6dd860658d0b72475c5408830671b9d9750e7251b9cd68bd'; // plaintext input must be a stringconst enc = aes; console; // => JpC10OoCLYs5u+lS7APMaA==console; // => Ffu10taggKPtriYzoZT/rg== // iv and ciphertext inputs must be stringsconst plaintext = aes; console; // => foobar
Installation
$ npm install simple-aes
Support
Please open an issue on this repository.
Authors
- James Billingham james@jamesbillingham.com
License
MIT licensed - see LICENSE file