How to create nonce and PasswordDigest using standard C++

How to create nonce and PasswordDigest using standard C++
LVL 6
carchitectAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
evilrixConnect With a Mentor Senior Software Engineer (Avast)Commented:
If you wish to close this question you'll need to post a message to Community Support; however, you might want to state why you feel the information you've received so far hasn't been helpful as I'm sure the exports will be only to willing to try and help you further.

http://www.experts-exchange.com/Community_Support/General/
0
 
Infinity08Commented:
What kind of digest do you want ?
0
 
jkrCommented:
One simple approach (if you can speak of 'simple' in that area at all) is presented at http://www.codeproject.com/cpp/cmd5.asp ("CMD5: A C++ Message Digest 5 Class"). You'd use that like

cout >> "Enter password:";
cin >> strUserEnteredPassword;
CMD5 md5((const char*)strUserEnteredPassword));
if(strcmp(md5.getMD5Digest(),
  (const char*)m_PreviouslyStoredDigestOfTheActualPassword)==0)
{
    //password is valid
}
else
{  
    //user entered incorrect password
}
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
evilrixSenior Software Engineer (Avast)Commented:
The source code for the SHA1 digest is freely available as part of the RFC: -
http://www.ietf.org/rfc/rfc3174.txt
0
 
carchitectAuthor Commented:
How does WSE (Security Enhancement)generates nonce value?
0
 
carchitectAuthor Commented:
I didn't get any satisfactory answer and would like to close the question
0
 
Infinity08Commented:
It's kind of hard to help you if you don't answer questions for clarification ...
0
 
carchitectAuthor Commented:
Hi Infinity

Sorry, but if i missed to answer anything. I changed my way to solve the problem, instead of using WSE now, i am using oracle to perform Base64 and SHA1.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.