/* PacketParse parse = new PacketParse(); return parse; */ public static PacketParse sendBanner() { PacketParse parse = new PacketParse(); parse.addString(HabboEncryptionHandlerV2.GetRsaDiffieHellmanPrimeKey()); parse.addString(HabboEncryptionHandlerV2.GetRsaDiffieHellmanGeneratorKey()); return parse; }
public static PacketParse RC4(SocketData _session) { BigInteger sharedKey = HabboEncryptionHandlerV2.CalculateDiffieHellmanSharedKey(_session.readString()); PacketParse parse = new PacketParse(); if(sharedKey != 0) { parse.addString(HabboEncryptionHandlerV2.GetRsaDiffieHellmanPublicKey()); parse.addBool(false); } else { parse.addString(""); parse.addBool(false); } return parse; }
public void Send(PacketParse v) { Send(v.ToBytes()); }