name5566 / leaf

A game server framework in Go (golang)
Apache License 2.0
5.26k stars 1.31k forks source link

如何提高前后端数据传输的安全性呢? #184

Closed JamesBobo closed 3 years ago

JamesBobo commented 3 years ago

有没有一个好的方式去对前后端消息进行加解密处理 现在看来如果直接明文传输的话多少有些不太安全

name5566 commented 3 years ago

加密是可以的。不过,安全不仅仅是加密的问题,而是一整套的算法和流程,这是一个相对复杂的问题。

JamesBobo commented 3 years ago

如果说要单纯实现消息加密 那么只能通过改动leaf代码实现了吗

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年7月1日(星期四) 中午11:12 收件人: @.>; 抄送: "ルパン @.>; @.>; 主题: Re: [name5566/leaf] 如何提高前后端数据传输的安全性呢? (#184)

加密是可以的。不过,安全不仅仅是加密的问题,而是一整套的算法和流程,这是一个相对复杂的问题。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

name5566 commented 3 years ago

增加消息加密不需要修改 leaf 代码的。根据你们具体需求,考虑 leaf 提供的接口或者其他方案。

JamesBobo commented 3 years ago

如果前端发送的消息是加密的  leaf如何确定这条消息交给那个模块取处理呢

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年7月1日(星期四) 中午11:29 收件人: @.>; 抄送: "ルパン @.>; @.>; 主题: Re: [name5566/leaf] 如何提高前后端数据传输的安全性呢? (#184)

增加消息加密不需要修改 leaf 代码的。根据你们具体需求,考虑 leaf 提供的接口或者其他方案。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.