I am encrypting some important content at client side using CryptoJS (AES). The code I am using is below:
function encrypt(value) {
var keyIV = 'Ei9sHWE25Jiol77Q';
return CryptoJS.AES.encrypt(CryptoJS.enc.Utf8.parse(value), CryptoJS.enc.Utf8.parse(keyIV),
{ keySize: 256 / 8,
iv: CryptoJS.enc.Utf8.parse(keyIV),
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
}).toString();
}
But as you see the key used to encrypt can be seen by anyone. How can I make this key secure or non human readable format or any other tricks to make sure the key is secure?