JES
Javascript implementation of the Advanced Encryption Standard (AES-128-CBC)
See the parent project here.
Usage
Install the module via NPM:
npm install node-jes
Require the module in your script:
var jes = ;
Encryption
JES;
plaintext
: (When encrypting) The plaintext to encode
key
: A 16-byte hexadecimal string
iv
: The initialization vector
output_type
: Choice of output type
- "hex/array": An array of single-byte hexadecimal strings
- "hex/string": A continuous, 16-byte string
- "ascii/array": An array of single-character strings
- "ascii/string": A continuous string
- "int/array": An array of single-byte integers
Decryption
JES;
The variables are the same as encryption, except that the input is ciphertext
now.