void Application.toAdmin(QuickFix.Message message, SessionID sessionID) { if (message is QuickFix42.Logon) { StringBuilder encryptPwd = new StringBuilder(128); switch (this.encryptType) { case 0: encryptPwd.Insert(0, this.passwrod); break; case 2: case 101: gsEncrypt(this.encryptType, this.passwrod, "GSFIXGW", encryptPwd, 128); break; } // 调用加密函数 message.setString(96, "Z:" + this.fundID + ":" + encryptPwd.ToString() + ":"); message.setInt(98, this.encryptType); } //Console.WriteLine("to admin:"+message.ToString()); }