So im having a problem decrypting a query string using Tshak.
encryption code:
[code=text]
private SecureQueryStri ng objStrT = new SecureQueryStri ng();
StringBuilder retURL = new StringBuilder(2 55);
objStrT.Add("TO FUPaymentOrderI D", order.OrderId);
objStrT.Add("Us erComplete", "true");
objStrT.ExpireT ime = DateTime.Now.Ad dMinutes(20);
retURL.Append(r eturnURL);
retURL.Append(o bjStrT.ToString ());
[/code]
decryption code:
[code=text]
SecureQueryStri ng objQS = new SecureQueryStri ng(HttpUtility. UrlDecode(Reque st["params"]));
orderID = objQS["TOFUPaymentOrd erID"].ToString();
[/code]
problem:
It is telling me that the string TOFUPaymentOrde rID doesnt exist.
what i think is happening, the encrypted string is getting URLencoded, then it doesnt look the same and the encrypted string on the other end. Possible?
encryption code:
[code=text]
private SecureQueryStri ng objStrT = new SecureQueryStri ng();
StringBuilder retURL = new StringBuilder(2 55);
objStrT.Add("TO FUPaymentOrderI D", order.OrderId);
objStrT.Add("Us erComplete", "true");
objStrT.ExpireT ime = DateTime.Now.Ad dMinutes(20);
retURL.Append(r eturnURL);
retURL.Append(o bjStrT.ToString ());
[/code]
decryption code:
[code=text]
SecureQueryStri ng objQS = new SecureQueryStri ng(HttpUtility. UrlDecode(Reque st["params"]));
orderID = objQS["TOFUPaymentOrd erID"].ToString();
[/code]
problem:
It is telling me that the string TOFUPaymentOrde rID doesnt exist.
what i think is happening, the encrypted string is getting URLencoded, then it doesnt look the same and the encrypted string on the other end. Possible?
Comment