Esempio n. 1
0
        public static string NearTodayDecryptStringTripleDES(string strToDecrypt)
        {
            string strResult = string.Empty;

            try
            {
                strResult = TEXCSCrypt.DecryptStringTripleDES(strToDecrypt, GetStringForCloseDateScrableKey(0));
            }
            catch
            {
                try
                {
                    strResult = TEXCSCrypt.DecryptStringTripleDES(strToDecrypt, GetStringForCloseDateScrableKey(-1));
                }
                catch
                {
                    strResult = TEXCSCrypt.DecryptStringTripleDES(strToDecrypt, GetStringForCloseDateScrableKey(1));
                }
            }
            return(strResult);
        }
Esempio n. 2
0
 public static string NearTodayEncryptStringTripleDES(string strToEncrypt)
 {
     return(TEXCSCrypt.EncryptStringTripleDES(strToEncrypt, GetStringForCloseDateScrableKey(0)));
 }