/// <summary> /// Encrypts a given string using the ProtectedConfigurationProvider /// </summary> public static string EncryptUsingTripleDES(string encryptValue) { var output = string.Empty; var tripleDES = new TripleDESProtectedConfigurationProvider(); output = tripleDES.EncryptString(encryptValue); tripleDES = null; return(output); }
/// <summary> /// Decrypts a given string using the ProtectedConfigurationProvider /// </summary> public static string DecryptUsingTripleDES(string textToDecrypt) { var output = string.Empty; var tripleDES = new TripleDESProtectedConfigurationProvider(); output = tripleDES.DecryptString(textToDecrypt); tripleDES = null; return(output); }