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
        public static void Initialize(string n, string d, string e)
        {
            Rsa = RsaKey.ParsePrivateKey('0' + n, '0' + e, '0' + d);

            DiffieHellman = new DiffieHellman();
        }
 public static void Initialize(RsaKeyHolder keys)
 {
     Rsa           = RsaKey.ParsePrivateKey(keys.N, keys.E, keys.D);
     DiffieHellman = new DiffieHellman();
 }