示例#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);
        }
示例#2
0
 public static string NearTodayEncryptStringTripleDES(string strToEncrypt)
 {
     return(TEXCSCrypt.EncryptStringTripleDES(strToEncrypt, GetStringForCloseDateScrableKey(0)));
 }