Click here to Skip to main content
15,891,597 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Saving password to registry? Pin
David Crow25-Aug-04 10:19
David Crow25-Aug-04 10:19 
GeneralRe: Saving password to registry? Pin
darkbyte25-Aug-04 10:36
darkbyte25-Aug-04 10:36 
GeneralRe: Saving password to registry? Pin
David Crow25-Aug-04 10:52
David Crow25-Aug-04 10:52 
GeneralRe: Saving password to registry? Pin
darkbyte26-Aug-04 5:00
darkbyte26-Aug-04 5:00 
AnswerRe: Saving password to registry? Pin
cmk25-Aug-04 13:22
cmk25-Aug-04 13:22 
AnswerRe: Saving password to registry? Pin
l a u r e n25-Aug-04 15:45
l a u r e n25-Aug-04 15:45 
GeneralRe: Saving password to registry? Pin
ThatsAlok25-Aug-04 21:53
ThatsAlok25-Aug-04 21:53 
GeneralRe: Saving password to registry? Pin
darkbyte26-Aug-04 4:46
darkbyte26-Aug-04 4:46 
I think it all depends on the level of protection you require on the password

You may or may not need the password to be decrypted which imposes 2 different ways of storing the data.

1) Need to decrypt

This is a weak way of storing a password because it can be decrypted but one might find this easier to handle since they can display the password after or send it by e-mail etc.

2) No need to decrypt

You store a non-decryptable version of the password or user/pass (if it applies) then when you need to validate the password, you encrypt the source data (password or user/pass) and compare versus what's found in your storage (registry). This also has the advantage that you will mostly never have the password unencrypted in process memory except for the source data which isnt guaranteed to match.

Once you decided on how you want to handle storage, you can better decide which encryption method you're going to use. Remember that each encryption system has its strengths and its weaknesses.
AnswerRe: Saving password to registry? Pin
JimmyRopes26-Aug-04 9:33
professionalJimmyRopes26-Aug-04 9:33 
GeneralDesign question (working with ATL OLE DB classes).... Pin
CherezZaboro25-Aug-04 7:32
CherezZaboro25-Aug-04 7:32 
GeneralRe: Design question (working with ATL OLE DB classes).... Pin
Doug Mitchell25-Aug-04 8:44
Doug Mitchell25-Aug-04 8:44 
GeneralRe: Design question (working with ATL OLE DB classes).... Pin
CherezZaboro25-Aug-04 15:55
CherezZaboro25-Aug-04 15:55 
GeneralRe: Design question (working with ATL OLE DB classes).... Pin
Ryan Binns25-Aug-04 18:31
Ryan Binns25-Aug-04 18:31 
GeneralRe: Design question (working with ATL OLE DB classes).... Pin
CherezZaboro26-Aug-04 3:34
CherezZaboro26-Aug-04 3:34 
GeneralRe: Design question (working with ATL OLE DB classes).... Pin
palbano25-Aug-04 19:50
palbano25-Aug-04 19:50 
GeneralRe: Design question (working with ATL OLE DB classes).... Pin
CherezZaboro26-Aug-04 3:45
CherezZaboro26-Aug-04 3:45 
GeneralRe: Design question (working with ATL OLE DB classes).... Pin
palbano26-Aug-04 4:34
palbano26-Aug-04 4:34 
GeneralWin32 console application - stop window from displaying Pin
BlackDice25-Aug-04 7:22
BlackDice25-Aug-04 7:22 
GeneralRe: Win32 console application - stop window from displaying Pin
jmkhael25-Aug-04 7:46
jmkhael25-Aug-04 7:46 
GeneralProblem using RichTextBox Pin
SuperTank25-Aug-04 6:09
SuperTank25-Aug-04 6:09 
GeneralRe: Problem using RichTextBox Pin
Tom Wright25-Aug-04 6:21
Tom Wright25-Aug-04 6:21 
GeneralRe: Problem using RichTextBox Pin
BlackDice25-Aug-04 7:43
BlackDice25-Aug-04 7:43 
GeneralRe: Problem using RichTextBox Pin
David Crow25-Aug-04 10:21
David Crow25-Aug-04 10:21 
GeneralRe: Problem using RichTextBox Pin
SuperTank25-Aug-04 10:40
SuperTank25-Aug-04 10:40 
GeneralDeriving from a CStatic Pin
act_x25-Aug-04 6:01
act_x25-Aug-04 6:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.