I'm trying to encrypt something using crypto-js and using the AES type of encryption.
The problem i'm having is that my encrypted value is different every time I encrypt it.
With this simple example, I run the same encryption 5 different times and I get 5 different results. Wtf is going on here?
task.js
var AES = require('crypto-js/aes');
var key = "abc123";
var secret = "encryptThisWord";
console.log(AES.encrypt(secret, key).toString());
console.log(AES.encrypt(secret, key).toString());
console.log(AES.encrypt(secret, key).toString());
console.log(AES.encrypt(secret, key).toString());
console.log(AES.encrypt(secret, key).toString());