Exemple #1
0
        public static string Hash32Encode(int txtHash32Int)
        {
            if (txtHash32Int < 1)
            {
                return("");
            }
            var txtHash32String = "";

            try
            {
                txtHash32String = IdHash32.GetEncodedValue(Convert.ToInt32(txtHash32Int), Txt32Key);
            }
            catch
            {
            }
            return(txtHash32String);
        }
Exemple #2
0
        public static int Hash32Decode(string txtHash32String)
        {
            if (txtHash32String.Length < 1)
            {
                return(0);
            }
            var txtHash32Int = 0;

            try
            {
                txtHash32Int = IdHash32.GetDecodedValue(txtHash32String, Txt32Key);
            }
            catch
            {
            }
            return(txtHash32Int);
        }