private static string SerializeTempData(IDictionary <string, object> values) { return(SignedString.CreateSignedString(new JavaScriptSerializer().Serialize(values), SigningKey)); }
private static IDictionary <string, object> DeserializeTempData(string signedData) { var message = SignedString.ExtractAndVerifyMessage(signedData, SigningKey); return(new JavaScriptSerializer().Deserialize <IDictionary <string, object> >(message)); }