Re: Password encryption
From: Laura (villa_l_at_hotmail.com)
Date: Wed, 3 Dec 2003 00:16:08 -0800
First of all, thank you very much!
In fact it can be a two "phase" question :). The most important is to encrypt the
pwd, the next step will be to encrypt the whole file (it's an xml diffgram so
the data are unprotected and visible).
The whole file encryption impacts on retrieving data from the cache
(I'm using the dataset's load method which accepts an xml diffgram).
----- Michael Giagnocavo [MVP] wrote: -----
Just a note that if saving a password with a hash, you should consider
multiple iterations (perhaps 1024 or more). The PasswordDeriveBytes class
handles this for you.
"Sunil" <email@example.com> wrote in message
> This looks like two parts to your question...
> 1) How do you authenticate the user when offline
> 2) How to Encrypt a file (or sections of it)?
>> for 2) I suggest you ecrypt the file using the MD5 Hash
> of userName + Password. Inside the file you can keep what
> ever you want to store including full details for the
> Login Info. (this should solve the part 1. )
>> This is not the greatest solution but it can be done
> quick and dirty.
>> I am pretty sure there are examples on the web which show
> how to encrypt a file and how to get a MD5 or SHA1 Hash
> for a given string...
>> Good Luck,
>>Hi, I'm developing an application that saves a data
> cache locally with the data retrieved from the server.
> This is done to let the user work offline. I need to
> save also the login info for the user (in order to
> authenticate the user even if he's working offline). I
> found a lot of classes under the System.Security
> Namespace, but I don't know wich one is more suitable to
> accomplish this task. I need to encrypt the pwd for
> example, or even the entire xml (the cache is a ado.net
> diffgram). Any hint?
>>>>Best regards and thanks in advance,