public HabboEncryptionHandlerV1(RsaKeyHolder keys)
        {
            this.DiffieHellman = new DiffieHellman();

            this.Rsa = RsaKey.ParsePrivateKey(keys.N, keys.E, keys.D);

            this.Rc4 = new ARC4();

            this.Initialized = false;
        }
예제 #2
0
파일: MainCore.cs 프로젝트: Psherk/Unnamed
        public static bool InitMain()
        {
            try
            {
                _config = new parseConfig();
                _postgres = new Connection();
                _socket = new SocketCreate();
                _game = new Game();
                Program.getMain().addLog(Show.typeLog.main, "Ready!");

                /*Thanks to Joopie*/
                RsaKeyHolder keys = new RsaKeyHolder();
                HabboEncryptionHandlerV2.Initialize(keys);

                return true;
            }
            catch
            {
                return false;
            }
        }
예제 #3
0
 public static void Initialize(RsaKeyHolder keys)
 {
     Rsa = RsaKey.ParsePrivateKey(keys.N, keys.E, keys.D);
     DiffieHellman = new DiffieHellman();
 }