Solved

How to create nonce and PasswordDigest using standard C++

Posted on 2007-11-27
8
1,239 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

705 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

18 Experts available now in Live!

Get 1:1 Help Now