public static int Decrypt(this string ID) { try { ID = ID.Replace("~", "/"); ID = ID.Replace("`", "\\"); int DecryptedApplicantID = Convert.ToInt32(CryptoClass.DecryptCipherTextToPlainText(ID)); return(DecryptedApplicantID); } catch (Exception ex) { return(0); } }
public static Int64 DecryptID(this string ID) { try { ID = ID.Replace("~", "/"); ID = ID.Replace("`", "\\"); Int64 DecryptedApplicantID = Convert.ToInt64(CryptoClass.DecryptCipherTextToPlainText(ID)); return(DecryptedApplicantID); } catch { return(0); } }