public static string Hash64Encode(int txtHash64Int) { if (txtHash64Int < 1) { return(""); } var txtHash64String = ""; try { txtHash64String = IdHash64.GetEncodedValue(Convert.ToInt32(txtHash64Int), Txt64Key); } catch { } return(txtHash64String); }
public static int Hash64Decode(string txtHash64String) { if (txtHash64String.Length < 1) { return(0); } var txtHash64Int = 0; try { txtHash64Int = IdHash64.GetDecodedValue(txtHash64String, Txt64Key); } catch { } return(txtHash64Int); }