views:

194

answers:

3

Hi im thinking about developing a sort of File Transfer program and was wondering if i want as good encryption that i can get what should i use?

ill be developing this with c# so i got access to the .net lib :P having a certificate with me on my usb to access the server is no problem if that would increase the security!

+4  A: 

Look into tunneling your connection through SSL. It does all the hard work for you.

Andrew
+7  A: 

The simplest built in way with the .NET Framework is probably to use the SslStream class which is built in. Example of usage here.

RM
is there any way to encrypt a byte array without having to use a sslstream?
Petoj
Sure. Many to choose from, see http://msdn.microsoft.com/en-us/library/system.security.cryptography.aspx
RM
Example How To: http://msdn.microsoft.com/en-us/library/aa308954(VS.71).aspx
RM
A: 

You can wrap a stream around a regular array using System.IO.MemoryStream.

lidgren