求一个C++或者C#能在windows下或者linux下直接运行的程序,能实现多人聊天的服务器且简单的加密。

很简单的就好,作业要求如下:Step1:UserAestablishesaTCPconnectionwithUserB.(用户A建立TCP连接用户B)Step2:User... 很简单的就好,作业要求如下:
Step 1: User A establishes a TCP connection with User B. (用户A建立TCP连接用户B)
Step 2: User A sends his/her user name to User B.(用户A发送名字给用户B)
Step 3: User B accepts the request, and sends a confirmation to User A.(B接受请求,发送确认信息)
Step 4: After identity verification, User A and B start to exchange the encrypted
messages by using their predefined secret key. All the conversations (decrypted
messages) should be recorded in a log file.(AB在之前就定义好的“钥匙”前提下,交换已加密的信息,所有解密的对话要存在一个文档中)
Step 6: To terminate the chat, both sides can use a command called “Bye” to terminate
the communications.(发送bye结束)
大概就是这样的,尽量能满足要求就好,要求很低低的,急......... 能找到这样的源代码的话,奖励多少分都可以~~~~~
展开
 我来答
IT孤鹜
2014-05-06 · TA获得超过4196个赞
知道大有可为答主
回答量:3960
采纳率:71%
帮助的人:3492万
展开全部

我有一个多人聊天的程序,可以运行

但是没加密功能,

加密功能应该很好实现,你实现就可以了

如原文

"abc" 


你在每个字符上+32 就可以实现简单的加密


更多追问追答
追问
你的程序发我试试可以吗?能运行就给你分
追答
可以运行,客服端在window下运行,服务器在Linux运行就可以了
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式