Although this question is quite common, I am interested in understanding the theoretical reason behind it.
I am attempting to send two encrypted values to my service.
Javascript
var encryptedlogin = CryptoJS.AES.encrypt(CryptoJS.enc.Utf8.parse(Email), key,
{
keySize: 128 / 8,
iv: iv,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
});
var encryptedpassword = CryptoJS.AES.encrypt(CryptoJS.enc.Utf8.parse(PasswordTwo), key,
{
keySize: 128 / 8,
iv: iv,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
});
var c = String(encryptedlogin);
var d = String(encryptedpassword);
var json = JSON.parse(c);
var json1 = JSON.parse(d);
$http.get("http://localhost:53101/TruckService.svc/validateUserA/" + json + '|' + json1 )
.success(function(data) {});
.error(function(data) {});