PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Re: File manipulation
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Re: File manipulation
![]() |
Re: File manipulation |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
A couple of options Nina (no snippets, but ideas):
1) Option Number 1, make a FileStream, and wrap a CryptoStream around it. CryptoStream takes a transformation when you make it, so that enables you to specify some way to cryptography the bits 2) a little less heavy weight, but no managed solution (as yet) is to go to http://msdn.microsoft.com/library/d...-us/fileio/base /encryptfile.asp to learn about simple file encryption (and then, follow any links to decryption). This will require a PInvoke call, but they're never too bad to setup.... "Nina Loff" <nloff@hotmail.com> wrote in message news:0c2f01c339cb$33e89250$a001280a@phx.gbl... > Hi, > > I am coding a windows application in C# and I would like > to store some > info in a text file. However, I don't want to user to be > able to see what's inside if he edits it. > > How can I encrypt the text file? > Anyone has a simple exemple of how to do this? > > thanks a lot > > Nina |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

