Click here to Skip to main content
16,012,759 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows styles Pin
Tim Smith31-Mar-02 2:24
Tim Smith31-Mar-02 2:24 
QuestionAny api to encrypt the text?? Pin
30-Mar-02 23:17
suss30-Mar-02 23:17 
AnswerRe: Any api to encrypt the text?? Pin
SeNs31-Mar-02 4:32
SeNs31-Mar-02 4:32 
AnswerRe: Any api to encrypt the text?? Pin
Neville Franks31-Mar-02 10:03
Neville Franks31-Mar-02 10:03 
GeneralRe: Any api to encrypt the text?? Pin
alex.barylski31-Mar-02 21:54
alex.barylski31-Mar-02 21:54 
GeneralRe: Any api to encrypt the text?? Pin
Neville Franks31-Mar-02 23:15
Neville Franks31-Mar-02 23:15 
GeneralRe: Any api to encrypt the text?? Pin
alex.barylski31-Mar-02 23:21
alex.barylski31-Mar-02 23:21 
AnswerRe: Any api to encrypt the text?? Pin
James R. Twine1-Apr-02 6:17
James R. Twine1-Apr-02 6:17 
Anonymous wrote:
I want to encrypt the password & store it in registry.Also i should be able to decrypt the string.
How can i do that?


   For a different approach, consider this...  I never use encryption for things like Passwords in applications: instead, I use a one-way hash (like MD5) and store the hash instead.

   So basically, when the user sets a password, you take the password, calculate a hash from it, and store the calcualted hash value in the registry/database/wherever/whatever.

   Later on, when you need to verify a password, you take the entered password, calculate a hash from it, and then compare it aganist the previously stored hash value.

   BYW: This method also allows you to use passwords of any length, because the hash value (in the case of MD5) is always the same length.

   Peace!

-=- James.
GeneralFormView and Printing Pin
Mazdak30-Mar-02 21:40
Mazdak30-Mar-02 21:40 
QuestionHow do I display system date and time?? Pin
girishc30-Mar-02 20:54
girishc30-Mar-02 20:54 
AnswerRe: How do I display system date and time?? Pin
Nish Nishant30-Mar-02 21:13
sitebuilderNish Nishant30-Mar-02 21:13 
GeneralRe: How do I display system date and time?? Pin
Jack Handy30-Mar-02 21:46
Jack Handy30-Mar-02 21:46 
GeneralRe: How do I display system date and time?? Pin
girishc31-Mar-02 5:30
girishc31-Mar-02 5:30 
GeneralRe: How do I display system date and time?? Pin
Nish Nishant31-Mar-02 5:48
sitebuilderNish Nishant31-Mar-02 5:48 
GeneralRe: How do I display system date and time?? Pin
Ravi Bhavnani31-Mar-02 5:56
professionalRavi Bhavnani31-Mar-02 5:56 
GeneralRe: How do I display system date and time?? Pin
girishc31-Mar-02 6:07
girishc31-Mar-02 6:07 
GeneralRe: How do I display system date and time?? Pin
Ravi Bhavnani31-Mar-02 6:21
professionalRavi Bhavnani31-Mar-02 6:21 
GeneralPrinting Pin
Mazdak30-Mar-02 19:43
Mazdak30-Mar-02 19:43 
GeneralRe: Printing Pin
Mazdak30-Mar-02 20:32
Mazdak30-Mar-02 20:32 
Generalsystem() vs. CreateProcess Pin
30-Mar-02 18:28
suss30-Mar-02 18:28 
GeneralRe: system() vs. CreateProcess Pin
sultan_of_6string30-Mar-02 18:54
sultan_of_6string30-Mar-02 18:54 
GeneralRe: system() vs. CreateProcess Pin
Nish Nishant30-Mar-02 19:08
sitebuilderNish Nishant30-Mar-02 19:08 
GeneralRe: system() vs. CreateProcess Pin
sultan_of_6string30-Mar-02 20:15
sultan_of_6string30-Mar-02 20:15 
GeneralRe: system() vs. CreateProcess Pin
Nish Nishant30-Mar-02 21:16
sitebuilderNish Nishant30-Mar-02 21:16 
GeneralRe: system() vs. CreateProcess Pin
Don Burton31-Mar-02 7:38
Don Burton31-Mar-02 7:38 

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.