Solved

How to create nonce and PasswordDigest using standard C++

Posted on 2007-11-27
8
1,254 Views
Last Modified: 2012-05-05
How to create nonce and PasswordDigest using standard C++
0
Comment
Question by:carchitect
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 53

Expert Comment

by:Infinity08
ID: 20358442
What kind of digest do you want ?
0
 
LVL 86

Expert Comment

by:jkr
ID: 20358555
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
 
LVL 40

Expert Comment

by:evilrix
ID: 20358628
The source code for the SHA1 digest is freely available as part of the RFC: -
http://www.ietf.org/rfc/rfc3174.txt
0
 
LVL 6

Author Comment

by:carchitect
ID: 20358673
How does WSE (Security Enhancement)generates nonce value?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 6

Author Comment

by:carchitect
ID: 20394005
I didn't get any satisfactory answer and would like to close the question
0
 
LVL 40

Accepted Solution

by:
evilrix earned 50 total points
ID: 20394270
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
 
LVL 53

Expert Comment

by:Infinity08
ID: 20394363
It's kind of hard to help you if you don't answer questions for clarification ...
0
 
LVL 6

Author Comment

by:carchitect
ID: 20394502
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Compile GLUT with Visual Studio 2015 1 110
computer science syllabus 3 70
Header of docx file 17 98
Memory going from 12gb to 64gb or 96gb. worth it? 15 138
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now