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

            return(new JavaScriptSerializer().Deserialize <IDictionary <string, object> >(message));
        }