Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void Send(string name, string message)
 {
     // Call the addNewMessageToPage method to update clients.
     Clients.User(CryptionClass.Decrypt(name)).addNewMessageToPage(name, message);
 }