Encrypting Text Files, HOW?

aewarnick

Senior Contributor
Joined
Jan 29, 2003
Messages
1,031
How can I encrypt my text files easily with my program so that they can only be read by the program?
Or better yet, entire directories?
 
Check out the help files for the classes within the
System.Security.Cryptography namespace; there are multifarious
samples for all the different types of encryption.
 
Most everything I saw was web stuff and the one I found that could be used to encrypt my text files needed NT to work.

Is there anything else?
 
Any cryptography class that is in the .NET framework is supported
by any OS that has the framework installed on it, and this includes
Windows 98, ME, 2000, XP, and NT.

Here is an example for ASP.NET, but it works the same for any
.NET framework application, including Windows Forms apps:
http://samples.gotdotnet.com/quicks...px?url=/quickstart/howto/doc/fileencrypt.aspx

Here is a page in the help collection that deals with cryptography:
[mshelp]ms-help://MS.VSCC/MS.MSDNVS/Cpqstart/html/cpsmpnetsamples-howtocryptography.htm#cpsmpfileencryptsample[/mshelp]
 
Back
Top