function encryption(ciphers, value, key, var_iv){
if(ciphers == 'aes'){
alert(CryptoJS.AES.encrypt(value, key, {iv:var_iv}));
//^The var_iv above is not the value given to the parameter "561564848945123132123145564", instead its just "var_iv".
}
encryption("aes", "foo", "passcrytp", "561564848945123132123145564", "CBC", "ZeroPadding");
Can't seem to pass the function parameter inside the curly bracket for mome reason. Help please. (:
Im not tring to access object property, I'm trying to pass the value given to the function parameter, to inside curly brackets mention above.