Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCallback Intro Pin
codemunkeh22-Dec-08 15:45
codemunkeh22-Dec-08 15:45 
AnswerRe: Callback Intro Pin
CPallini23-Dec-08 3:05
mveCPallini23-Dec-08 3:05 
QuestionSetWindowSubclass is killing my app! Pin
KellyR22-Dec-08 14:17
KellyR22-Dec-08 14:17 
AnswerRe: SetWindowSubclass is killing my app! Pin
Naveen22-Dec-08 18:57
Naveen22-Dec-08 18:57 
GeneralRe: SetWindowSubclass is killing my app! Pin
KellyR22-Dec-08 19:19
KellyR22-Dec-08 19:19 
GeneralRe: SetWindowSubclass is killing my app! Pin
Mark Salsbery23-Dec-08 5:50
Mark Salsbery23-Dec-08 5:50 
QuestionVC Application with password Pin
sunny_vc22-Dec-08 13:38
sunny_vc22-Dec-08 13:38 
AnswerRe: VC Application with password Pin
Garth J Lancaster22-Dec-08 15:17
professionalGarth J Lancaster22-Dec-08 15:17 
sunilkumar.d wrote:
I am thinking about storing it in Registry.But is it the correct way of
storing the password?


I think you're confusing 'where to store' a password with 'how it should be stored' .. a password should never be stored anywhere as plain text - you should hash it with something like sha1 and store the hash [at a minimum]. When the user enters the password, you hash that and compare it to the stored hash and if there are the same, they are allowed access ...

Now, as to where to actually store the hashed/encrypted/obfuscated password - that depends on a lot of things .. will the password change and how often ? How will you handle updates - what happens if some other user needs to run the program from their PC ?? (etc etc) In the end, you must evaluate these questions vs how important the data/program is should it get into the wrong hands ..

.. and for anything but a trivial app I'd recommend looking at USB keys that you can issue to each user - then you have ultimate control

'g'
AnswerRe: VC Application with password Pin
Chandrasekharan P22-Dec-08 17:25
Chandrasekharan P22-Dec-08 17:25 
AnswerRe: VC Application with password Pin
Mustapha Rédouane23-Dec-08 0:06
Mustapha Rédouane23-Dec-08 0:06 
QuestionVC++ 6.0 to VC++ 9.0 porting issue. Runtime Assertion for Keyboard handler Pin
pratap198022-Dec-08 10:45
pratap198022-Dec-08 10:45 
AnswerRe: VC++ 6.0 to VC++ 9.0 porting issue. Runtime Assertion for Keyboard handler Pin
Jijo.Raj22-Dec-08 11:03
Jijo.Raj22-Dec-08 11:03 
GeneralRe: VC++ 6.0 to VC++ 9.0 porting issue. Runtime Assertion for Keyboard handler Pin
pratap198022-Dec-08 11:15
pratap198022-Dec-08 11:15 
Questionquestion is it possible to hook a function using byte signature Pin
nah133722-Dec-08 10:08
nah133722-Dec-08 10:08 
QuestionNoob QOTD : Resources (menu) in DEBUG only ? Pin
Maximilien22-Dec-08 7:49
Maximilien22-Dec-08 7:49 
AnswerRe: Noob QOTD : Resources (menu) in DEBUG only ? Pin
Code-o-mat22-Dec-08 9:22
Code-o-mat22-Dec-08 9:22 
AnswerRe: Noob QOTD : Resources (menu) in DEBUG only ? Pin
Roger Allen24-Dec-08 0:46
Roger Allen24-Dec-08 0:46 
GeneralRe: Noob QOTD : Resources (menu) in DEBUG only ? Pin
Maximilien24-Dec-08 1:53
Maximilien24-Dec-08 1:53 
QuestionInteracting with the "computer locked" desktop Pin
Al Huneke22-Dec-08 5:07
Al Huneke22-Dec-08 5:07 
AnswerRe: Interacting with the "computer locked" desktop Pin
Jonathan Davies22-Dec-08 6:07
Jonathan Davies22-Dec-08 6:07 
GeneralRe: Interacting with the "computer locked" desktop Pin
Al Huneke22-Dec-08 7:12
Al Huneke22-Dec-08 7:12 
QuestionAdd a Vista Gadget programmatically Pin
Member 382162022-Dec-08 5:06
Member 382162022-Dec-08 5:06 
QuestionEXE(Visual studio 6.0) is running at the back end, after the closing application also. Pin
Member 465174122-Dec-08 4:59
Member 465174122-Dec-08 4:59 
AnswerRe: EXE(Visual studio 6.0) is running at the back end, after the closing application also. Pin
Jonathan Davies22-Dec-08 5:52
Jonathan Davies22-Dec-08 5:52 
GeneralRe: EXE(Visual studio 6.0) is running at the back end, after the closing application also. Pin
Member 465174122-Dec-08 17:58
Member 465174122-Dec-08 17:58 

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.