PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Re: File manipulation

Reply

Re: File manipulation

 
Thread Tools Rate Thread
Old 24-06-2003, 10:21 PM   #1
Kit George [MSFT]
Guest
 
Posts: n/a
Default Re: File manipulation


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



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off