Exemplo n.º 1
0
        public static T Decrypt <T>(string encryptedText)
        {
            var decryptedText = Encrypter.Decrypt
                                (
                encryptedText,
                _passPhrase,
                _saltValue,
                _hashAlgorithm,
                _passwordIterations,
                _initVector,
                _keySize
                                );

            var jss = new System.Web.Script.Serialization.JavaScriptSerializer();
            T   obj = (T)jss.Deserialize(decryptedText, typeof(T));

            return(obj);
        }