Esempio n. 1
0
        private static string smethod_4(string string_0, string string_1, AuthCode.Enum0 enum0_0, int int_0)
        {
            if (string_0 == null || string_1 == null)
            {
                return(string.Empty);
            }
            int int_ = 0;

            string_1 = AuthCode.MD5(string_1);
            string text     = AuthCode.MD5(AuthCode.smethod_0(string_1, 16, 16));
            string text2    = AuthCode.MD5(AuthCode.smethod_0(string_1, 0, 16));
            string empty    = string.Empty;
            string string_2 = text + AuthCode.MD5(text + empty);

            if (enum0_0 != AuthCode.Enum0.const_1)
            {
                string_0 = ((int_0 != 0) ? ((long)int_0 + AuthCode.UnixTimestamp()).ToString() : "0000000000") + AuthCode.smethod_0(AuthCode.MD5(string_0 + text2), 0, 16) + string_0;
                byte[] array = AuthCode.smethod_5(AuthCode.encoding_0.GetBytes(string_0), string_2);
                return(empty + Convert.ToBase64String(array));
            }
            byte[] byte_;
            string empty2;

            try
            {
                byte_ = Convert.FromBase64String(AuthCode.smethod_1(string_0, int_));
                goto IL_B7;
            }
            catch
            {
                try
                {
                    byte_ = Convert.FromBase64String(AuthCode.smethod_1(string_0 + "=", int_));
                }
                catch
                {
                    try
                    {
                        byte_ = Convert.FromBase64String(AuthCode.smethod_1(string_0 + "==", int_));
                    }
                    catch
                    {
                        empty2 = string.Empty;
                        return(empty2);
                    }
                }
                goto IL_B7;
            }
            return(empty2);

IL_B7:
            string @string = AuthCode.encoding_0.GetString(AuthCode.smethod_5(byte_, string_2));
            long num = long.Parse(AuthCode.smethod_0(@string, 0, 10));

            if ((num == 0L || num - AuthCode.UnixTimestamp() > 0L) && AuthCode.smethod_0(@string, 10, 16) == AuthCode.smethod_0(AuthCode.MD5(AuthCode.smethod_1(@string, 26) + text2), 0, 16))
            {
                return(AuthCode.smethod_1(@string, 26));
            }
            return(string.Empty);
        }