react-native-aes-ecb
Version:
A pure JavaScript implementation of the AES block cipher algorithm with additional features for react-native.
10 lines (7 loc) • 316 B
JavaScript
const encryptor = require('./encryptor');
const decryptor = require('./decryptor');
var keyString = 'KeyMust%e16ByteOR24*yteOR32Byte!';
var input = 'Hello! here we are there you bee';
var encrypt = encryptor(keyString, input);
var decrypt = decryptor(keyString, encrypt);
console.log(encrypt, decrypt.split('\\'))