Esempio n. 1
0
        /// <summary>
        /// Original I1 for easy maintaining in the future.
        /// </summary>
        /// <param name="param1"></param>
        /// <returns></returns>
        static int I1(int param1)
        {
            var _loc3_ = 0;

            while (param1 != KeyFuncs.l(KeyFuncs.s(KeyFuncs.y(Il[Il[13]])), _loc3_, 1))
            {
                _loc3_++;
            }
            return(_loc3_);
        }
Esempio n. 2
0
        /// <summary>
        /// Construct a signature string that will verified by Kancolle server (api_ranking, api_port, ...)
        /// </summary>
        /// <param name="param1">Teitoku's member ID</param>
        /// <returns></returns>
        public static string CreateSignature(int param1)
        {
            var _loc3_ = KeyFuncs.u(32768, KeyFuncs.i((int)KeyFuncs.m(32768, 1)));
            var _loc4_ = KeyFuncs.c(KeyFuncs.u(KeyFuncs.u(KeyFuncs.p(Il[16], param1), Il[16]), KeyFuncs.z(Il[16], KeyFuncs.i(9)))) + KeyFuncs.z(KeyFuncs.m(KeyFuncs.u(KeyFuncs.m(KeyFuncs.z(KeyFuncs.u(Il[5], _loc3_), KeyFuncs.u(KeyFuncs.l(KeyFuncs.c(param1), 0, 4), Il[16])), KeyFuncs.n()), KeyFuncs.u(Il[17], KeyFuncs.z(_loc3_, 9))), param1), Il[I1((int)KeyFuncs.p(10, param1))]) + KeyFuncs.u(Il[16], KeyFuncs.i((int)KeyFuncs.z(Il[16], 9)));

            return(KeyFuncs.i(10) + KeyFuncs.a(_loc4_, 0, 7) + KeyFuncs.i(10) + KeyFuncs.a(_loc4_, 7, 9) + KeyFuncs.i(10) + KeyFuncs.a(_loc4_, 16, Il[16]) + KeyFuncs.c(_loc3_));
        }