心跳加密
This commit is contained in:
parent
e10c095b3d
commit
b3d4b2a26f
|
@ -336,7 +336,7 @@ void ShowMessage(const TinyMessage& msg, bool send, ITransport* port)
|
|||
static bool Encrypt(Message& msg, Array& pass)
|
||||
{
|
||||
// 加解密。组网不加密,退网不加密
|
||||
if(msg.Length > 0 && pass.Length() > 0 && !(msg.Code == 0x01 || msg.Code == 0x02||msg.Code==0x03))
|
||||
if(msg.Length > 0 && pass.Length() > 0 && !(msg.Code == 0x01 || msg.Code == 0x02))
|
||||
{
|
||||
Array bs(msg.Data, msg.Length);
|
||||
RC4::Encrypt(bs, pass);
|
||||
|
|
Loading…
Reference in New Issue