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; }
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; } }
public static void Initialize(RsaKeyHolder keys) { Rsa = RsaKey.ParsePrivateKey(keys.N, keys.E, keys.D); DiffieHellman = new DiffieHellman(); }