Linux环境下使用TCP的服务器客户端应用程序,

[英]a server client application using TCP in C in linux environment,


i have created a server client application using TCP in C in linux environment,and it is working very well. I wish to improve the application by including a cryptographic algorithm into it so that the server just gets to know about who has logged in and out of the server but not about the information shared between the clients. Any suggestions for algorithm that i should employ in my project to achieve the desired result. I am currently looking into MD5 algorithm.

我已经在Linux环境下使用TCP在C中创建了一个服务器客户端应用程序,并且它运行良好。我希望通过在其中加入加密算法来改进应用程序,以便服务器只知道谁登录和退出服务器,而不知道客户端之间共享的信息。我应该在我的项目中使用的任何算法建议,以达到预期的结果。我目前正在研究MD5算法。

1 个解决方案

#1


2  

As far as I understand you want to encrypt/decrypt messages between users. If so MD5 won't do it as it is just a hash function. https://en.wikipedia.org/wiki/MD5

据我所知,您希望在用户之间加密/解密消息。如果是这样,MD5将不会这样做,因为它只是一个哈希函数。 https://en.wikipedia.org/wiki/MD5

Probably the best algorithm to do so would be AES: https://en.wikipedia.org/wiki/Advanced_Encryption_Standard

可能最好的算法是AES:https://en.wikipedia.org/wiki/Advanced_Encryption_Standard

There are many implementation (including in C) on the web so you can literally copy-paste the code (mind the license ;) ).

Web上有许多实现(包括C语言),因此您可以直接复制粘贴代码(请注意许可证;))。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2015/12/22/bfe21b8405c20459f17b3c6cd260b423.html



 
  © 2014-2022 ITdaan.com 联系我们: