Click here to Skip to main content
15,914,165 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing the caption of start button Pin
SpiderMan11-Dec-00 13:43
SpiderMan11-Dec-00 13:43 
GeneralAbout creating Voice recognition software Pin
11-Dec-00 3:20
suss11-Dec-00 3:20 
GeneralRe: About creating Voice recognition software Pin
Brendan Tregear11-Dec-00 17:06
Brendan Tregear11-Dec-00 17:06 
Generalabout Font creattion using VC++ Pin
11-Dec-00 3:17
suss11-Dec-00 3:17 
GeneralRe: about Font creattion using VC++ Pin
12-Dec-00 18:23
suss12-Dec-00 18:23 
GeneralStrings in compiled applications Pin
Hanselmann11-Dec-00 3:20
Hanselmann11-Dec-00 3:20 
GeneralRe: Strings in compiled applications Pin
SAWilde11-Dec-00 7:24
SAWilde11-Dec-00 7:24 
GeneralRe: Strings in compiled applications Pin
Jim Howard11-Dec-00 9:37
Jim Howard11-Dec-00 9:37 
I agree with the other poster in saying that it is a very bad idea to hardcode passwords into your code, or to store actual passwords in any form.

It is MUCH better to save a crytological hash of the password, such as an MD5 hash (do a web search for "Request for Comments: 1321"). A crypto hash has the property that given a plaintext string, it's easy to compute a hash code. BUT given the hash code, it's almost impossible to get back to the plan text. It's perfectly safe to store hash values in an ini file or the registry, or even to just post it on a billboard on the Motorway.

What you do is get the password, run it through a hash algorithm, and compare the password's hash value with the one you saved. If they are equal, then then the user has entered the correct passsword.

Jim
GeneralRe: Strings in compiled applications Pin
Jim Howard18-Dec-00 5:26
Jim Howard18-Dec-00 5:26 
GeneralRe: Strings in compiled applications Pin
Erik Funkenbusch11-Dec-00 12:11
Erik Funkenbusch11-Dec-00 12:11 
GeneralRe: Strings in compiled applications Pin
11-Dec-00 18:14
suss11-Dec-00 18:14 
GeneralLAN Line connection Pin
The Homer11-Dec-00 2:54
The Homer11-Dec-00 2:54 
GeneralRe: LAN Line connection Pin
SAWilde11-Dec-00 6:42
SAWilde11-Dec-00 6:42 
QuestionHow to create a chlid CView? Pin
11-Dec-00 2:41
suss11-Dec-00 2:41 
GeneralDrag and Drop Pin
Daníel B. Sigurgeirsson11-Dec-00 0:15
Daníel B. Sigurgeirsson11-Dec-00 0:15 
QuestionHow to implement a custom dialog in a property sheet ? Pin
Michael Lehzen10-Dec-00 23:48
Michael Lehzen10-Dec-00 23:48 
QuestionHow to Debug ISAPI Extension DLL under W2K? Pin
jacksonlue10-Dec-00 23:09
jacksonlue10-Dec-00 23:09 
GeneralXSL ISAPI Extension 1.1 wanted Pin
10-Dec-00 22:24
suss10-Dec-00 22:24 
QuestionHow to map a BMP from file in a toolbar?? Pin
10-Dec-00 22:10
suss10-Dec-00 22:10 
GeneralAll I want for Christmas is a better group box Pin
Matt Philmon10-Dec-00 19:49
Matt Philmon10-Dec-00 19:49 
GeneralRe: All I want for Christmas is a better group box Pin
Mel Stober11-Dec-00 9:06
Mel Stober11-Dec-00 9:06 
GeneralRe: All I want for Christmas is a better group box Pin
Erik Funkenbusch11-Dec-00 12:41
Erik Funkenbusch11-Dec-00 12:41 
Questionhow to use a normal window as a modal dialog box? Pin
10-Dec-00 18:38
suss10-Dec-00 18:38 
QuestionIntercept all input from user? Pin
10-Dec-00 16:25
suss10-Dec-00 16:25 
AnswerRe: Intercept all input from user? Pin
Chris Maunder10-Dec-00 17:37
cofounderChris Maunder10-Dec-00 17:37 

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.