Binary File Encryption

hello,

hi coders...

i have been searching the help and msdn site for hours now but could not come up with a complete solution.

by the way i am using vbexpress2005 for my coding.

i have several binary files (like dbf,idx,etc) that i want to encrypt using vbexpress2005 cbuilt-in lcasses. there are some example for encrypting text files but i could not get a complete code snippet for encrypting/decrypting binary files.

could somehow paste these sample codes if they have them? thanks.

also how to you decrypt a binary file "to memory"? it is a bit useless to have a strong encryption if you will just decrypt the binary file to hard drive right?

anyone could then just locate the decrypted file using simple dir listing before & after program installation.

thanks in advance!

[845 byte] By [Phil333] at [2007-12-24]
# 1

Take a look at: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=675930&SiteID=1. Also, use a MemoryStream (instead of a FileStream or File) to decode the files directly into Memory

That should get you started.

MSFTAbelValadez at 2007-8-31 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 2

abel,

hi

thanks for the lead. will take a look at it.

bye!

Phil333 at 2007-8-31 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 3

hi to all who answered.

found this article + source code for VB.net for simple Binary File Encryption & Decryption.

http://www.codeproject.com/useritems/Crypto.asp

hope this will help future searches...

tag keys - binary file encryption hash Rjindael SHA RC2 DES

thanks again to all

Phil333 at 2007-8-31 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...