I have code like below, now I want to Encrypt variable "encrydata" and same Decrypt in java, is there any choice to encrypt variables.?
In "obj" I have encrypted data. Whenever am passing variable through ajax call and encrypted data appearing on console. I want to be keep my data more secure please help me in this.
var encrydata = encyData(obj);
$.ajax({
url: "web/decyData",
"type": "POST",
async:true,
data:{
json : encrydata ,
},
thanks in advance