views:

285

answers:

2

A folder on File System contains .xml files, .txt files and a file exposed by third party tool. Using c# (in VS 2008), I want to encrypt the whole folder in someway before transferring it through FTP.

Help is appreciated.

+1  A: 

Assuming you trust both sides of the file transfer, you can use SCP (file transfer over SSH) or FSTP instead, so all the communication will be encrypted.

If you don't want to, or can't, then you can encrypt the files, there is good MSDN guide on how to encrypt/decrypt files.

Am
Encrypting the file and sending it over an insecure protocol is not a complete solution. I agree with Am: use TLS (SSL), SCP, SFTP, etc. as well.
Nissan Fan
+1  A: 

Look at DotNetZip library. It provides API to ZIP and Encode files and folders.