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 联系我们: