private string DecryptConnStr(string inStr) { try { switch (EncryptType) { case 1: inStr = inStr.TripleDesDecryptFromBase64ToString(); break; case 2: inStr = Net91ComCryptoHelper.DES_Decrypt(inStr); break; default: break; } } catch (Exception ex) { NLogUtility.ExceptionLog(ex, "ConnectionElement_DecryptConnStr", "CustomConfig"); } return(inStr); }
private void btnN91UnDes_Click(object sender, EventArgs e) { txt34.Text = Net91ComCryptoHelper.DES_Decrypt(txt33.Text); }