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