[英]What are the proper steps to create an encrypted java chat server/client?
I have been searching the web and here on how to create an encrypted chat server/client. 我一直在网上搜索,这里是如何创建加密的聊天服务器/客户端的信息。 And I think I got pretty confused now.
我想我现在很困惑。
Firstly, I created a chat server/client from the free example Knock Knock Server from the Java Examples
. 首先,我从
Java Examples
的免费示例Knock创建了一个聊天服务器/客户端。 So far, everything is working nicely, until I want to encrypt both server and clients. 到目前为止,一切工作都很好,直到我想同时加密服务器和客户端。
Secondly, where do I start the encryption first? 其次,我首先在哪里开始加密? From the server then to the client?
从服务器到客户端? Am I suppose to use that
Java Tool
to create an encryption file for the server and share it with the clients? 我是否想使用该
Java Tool
为服务器创建加密文件并与客户端共享?
Lastly, I am so confused after looking at so many tutorials on encryption, I don't know what is best for my situation. 最后,看了这么多关于加密的教程后,我感到非常困惑,我不知道哪种方法最适合我的情况。 Can anyone help direct me to the correct tutorial website?
任何人都可以帮助将我定向到正确的教程网站吗? Thanks a lot.
非常感谢。
PS I do not know what kind of encryption tag I am suppose to use. PS我不知道我应该使用哪种加密标签 。 Please edit that for me.
请为我编辑。 Thank you.
谢谢。
i don't think you need encryption and another tools. 我认为您不需要加密和其他工具。 just use
jsr-356
for websocket based chatting and ssl
for securing your content. 只需使用
jsr-356
进行基于websocket的聊天,并使用ssl
来保护您的内容。
I suggest you read about Transport Layer Security ( TLS ); 我建议您阅读有关传输层安全性 ( TLS )的文章; It is probably the simplest reasonable approach to security and has been widely adopted (eg https and ftps).
这可能是最简单的合理安全方法,并已被广泛采用(例如https和ftps)。
In a sentence, it works by establishing a "secure channel" for your existing protocol to communicate over. 一句话,它通过为现有协议建立“安全通道”进行通信来起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.