This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Dependencies | |
const _config = require('config'); // Current version ^1.20.4 | |
const _crypto = require("crypto-js"); // Current version ^3.1.9-1 | |
/// Properties | |
var _password = _config.aesPassword; // Good recomendation, | |
// don't save passwords | |
// in plain text or source code | |
var _textToEncrypt = 'Hello World!'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var input = [ | |
{name: "hola", age: 34}, | |
{name: "hola1", age: 203}, | |
{name: "hola2", age: 3}, | |
{name: "hola3", age: 746}, | |
{name: "hola4", age: 200}, | |
{name: "hola5", age: 984}, | |
{name: "hola6", age: 198}, | |
{name: "hola7", age: 764}, | |
{name: "hola8", age: 9}]; |
NewerOlder