public static string DecryptPassword(string encryptPsw) { string result = string.Empty; try { if ((string.IsNullOrEmpty(encryptPsw) == false)) { result = CryptionClass.Decrypt(encryptPsw); } } catch { result = string.Empty; } return(result); }
public void Send(string name, string message) { // Call the addNewMessageToPage method to update clients. Clients.User(CryptionClass.Decrypt(name)).addNewMessageToPage(name, message); }