namespace XGame.Framework.Network { /// /// 消息加密器 /// public interface IMsgEncryptor { void SetKey(string key); /// /// 加密 /// 结果替换原变量 /// /// /// /// /// void Encrypt(ref byte[] bytes, ref int offset, ref int length); /// /// 解密 /// 结果替换原变量 /// /// /// /// /// void Decrypt(ref byte[] bytes, ref int offset, ref int length); } }