/// <summary> /// /// </summary> /// <param name="encryptedText"></param> /// <returns></returns> public static string Decrypt(string encryptedText) { return(Encrypter.Decrypt ( encryptedText, _passPhrase, _saltValue, _hashAlgorithm, _passwordIterations, _initVector, _keySize )); }
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); }