Link to home
Start Free TrialLog in
Avatar of lgropper
lgropper

asked on

Best way to Encrypt / Decrypt a file

I have an application that transfers some sensitive data in an email file over the internet...  I have encoded the most valuable items in the file, but I would like to have the entire file encoded or encrypted.  

what is the best way (least resource intensive) to encrypt a binary file's contents and allowing only the reader applicaiton to read it?
 
The files are very small (under .5 k) and have the data separated by line breaks

Avatar of jake072
jake072
Flag of Canada image

Avatar of ilaird
ilaird

i would recomend md5. all though it is somewhat of a older crypto language it will siute your tast. take a look at this ms kb artical
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecuritycryptographymd5classtopic.asp
These examples include an encryption/decryption vb.net project (and much more):

http://www.microsoft.com/downloads/details.aspx?FamilyId=08E3D5F8-033D-420B-A3B1-3074505C03F3&displaylang=en#filelist

Hope this helps.

Chris
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lgropper

ASKER

Thanks that was fantastic, sorry it took me so long, I have been incredibly busy lately.  Thanks again!