aes-256-cbc encrypt and decrypt examples
Original program is here.
This sample, encryption, decryption input and output to the format of the following.
Since you are writing a common key for encryption in the library that you created for each language, when you actually use, please change.
String src = "Hello,CryptWorld";
String enc = AESUtil.encrypt(src);
String dec = AESUtil.decrypt(enc);
Encrypt = require './encrypt'
src = 'Hello,CryptWorld'
enc = Encrypt.encrypt src
dec = Encrypt.decrypt enc