在发送之前我需要对加密字节进行编码吗?
通过 java 数据流发送即时消息时,是否需要对加密字节进行编码?发送加密字节对我来说看起来不太安全。
如果是这样,我应该使用 Hex 还是 Base64 编码?
谢谢
Do I need to encode my encrypted bytes when sending it through java data streams for instant messaging? Sending encrypted bytes don't look very safe to me.
If so, should I use Hex or Base64 encoding?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
事实证明这取决于我。除非我使用电子邮件协议,否则没有真正的需要。由于我自己实现了所有内容,这只是一个方便的问题。
It turns out that its up to me. There is no real need unless I'm working with email protocols. Since I've implemented everything myself, its just a matter of convenience.
SSL 已经加密您的数据。尽管可能会出现这种需要,但对数据进行两次加密通常是不必要的,并且会消耗太多的 CPU 时间。这对于移动设备尤其重要。
SSL already encrypts your data. Although the need may come up, encrypting data twice is usually unnecessary and consumes too much CPU time. This is especially relevant on mobile devices.