RE: Encrypting passwords
- From: choywk <choywk@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 28 Aug 2005 21:09:01 -0700
There were a few suggestions in this thread to use XOR to encrypt/decrypt
password. I do not recommend that you follow those suggestions. Programmers
worth their salt do not recommend XOR to encrypt data. Data encrypted using
XOR can be decrypted by any fairly competent hackers.
I recommend you use the Windows crypto APIs to perform encryption. These
APIs have been carefully designed and vetted by cryptographic experts. For
example, you can hash the user password in MD5 or SHA1 digest and store the
digest. When user next enter the password, you can hash the password and
compare the hash with the previously stored digest.
"SD" wrote:
> Hi,
>
> I have an application where a user enters a password, which is to
> be used the next time the user wants to invoke the application.
> The password is to be encrypted before being stored in the
> registry. Since I'm new to encryption, could someone point
> me to some sample to do this? I would just need simple XOR
> encryption/ decryption.
>
> TIA,
> SD
.
- References:
- Encrypting passwords
- From: SD
- Encrypting passwords
- Prev by Date: Re: ListView header re-create problem - TIA
- Next by Date: Re: loading file into memory
- Previous by thread: Re: Encrypting passwords
- Next by thread: show dialog result?
- Index(es):
Relevant Pages
|