服务器/客户端加密通信C# [英] server/client aes encrypted communication C#

查看:432
本文介绍了服务器/客户端加密通信C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用AESCryptoServiceProvider()加密一些数据,并使用RSA加密保护AES密钥。这是一个学校项目,我需要做的只是从客户端发送一个字到服务器..有人可以发送我一些示例代码,因为我找不到这样的东西,我已经搜索了两个小时。我对AES更熟悉,但RSA是这里的主要问题。如果有人能给我发一些例子我会非常感激。

I need to encrypt some data using AESCryptoServiceProvider(), and protect the AES key using RSA encryption.It''s a school project and all i need to do is just send a word from client to server.. Can someone please send me some sample code since i couldn''t find anything like that and i''ve been searchin fort two hours. I am more familiar with AES, but RSA is the main problem here. If anyone could send me some examples i would be very thankful.

推荐答案

尝试以下方法:

RSA实施问题/讨论:

http://stackoverflow.com/questions/16070790/rsa-implementation- in-c-sharp [ ^ ]



http ://stackoverflow.com/questions/384401/implementing-rsa-in-c-sharp [ ^ ]



客户端/服务器演示/文章

使用C#进行简单的客户端 - 服务器交互 [ ^ ]



http ://codeabout.wordpress.com/2011/03/06/building-a-simple-server-client-application-using-c/ [ ^ ]



http:// codeincodeblock。 blogspot.co.uk/2011/11/tcp-client-and-server-sample-example.html [ ^ ]



不知道是什么你已经尝试过了,或者你已经尝试了多远可能会提供一些起点。
Try the following:
RSA implemntation Questions/Discussions:
http://stackoverflow.com/questions/16070790/rsa-implementation-in-c-sharp[^]

http://stackoverflow.com/questions/384401/implementing-rsa-in-c-sharp[^]

Client/Server Demos/Articles
Simple Client-server Interactions using C#[^]

http://codeabout.wordpress.com/2011/03/06/building-a-simple-server-client-application-using-c/[^]

http://codeincodeblock.blogspot.co.uk/2011/11/tcp-client-and-server-sample-example.html[^]

Not knowing what you have already tried, or how far you have gotten these might provide some starting points.

这篇关于服务器/客户端加密通信C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆