Re: Encrypting passwords



> 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.

If you only need to target Windows 2000 and later operating systems,
you could use the DPAPI facilities which are really easy to use -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsecure/html/windataprotection-dpapi.asp

>I would just need simple XOR encryption/ decryption.

In that case, what in particular are you having a problem with - just
XOR each byte with a fixed value, and do the same thing again to
decrypt it.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
.



Relevant Pages

  • Re: Reverseway algorithm (32767-bytes key) - full descryption.
    ... > The fifth step makes cipher unbreakable and impossible for decryption ... > against any attacks such as differential and linear cryptanalysis. ... Using XOR to expand a key does not a One-Time-Pad make. ...
    (comp.security.misc)
  • Re: The revelation of St. f0dder the Divine
    ... invoke CloseHandle, ... xor eax,eax ... sub eax,1 ...
    (alt.lang.asm)
  • Re: how can use xor logic
    ... i want encryption & decryption when enter password ... iwant use xor to make this ... xor each bit of the clear text with each bit of the random text. ... This simple cipher turns out to be among the strongest forms of encryption. ...
    (comp.lang.java.programmer)
  • Re: how can use xor logic
    ... i want encryption & decryption when enter password ... iwant use xor to make this ...
    (comp.lang.java.programmer)
  • Re: how can use xor logic
    ... i want encryption & decryption when enter password ... iwant use xor to make this ... If all you want to do is obscure something, then XOR will work just fine. ...
    (comp.lang.java.programmer)