Solved

How to create nonce and PasswordDigest using standard C++

Posted on 2007-11-27
8
1,277 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 6

Author Comment

by:carchitect
ID: 20358673
How does WSE (Security Enhancement)generates nonce value?
0
 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

821 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