You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Asanka Priyanjitih <AP...@virtusa.com> on 2004/07/20 13:05:47 UTC

[wss4c]Implementation of generate password digest for username-token

Hi Team,

 

I have attached the implementation of the password digest generation
functions for the Username Token in accordance with the Oasis Web
Services Security

Username Token Profile 1.0(.cpp file and the Microsoft visual ++ 6
project as a zip file).

 

The details are follows.

 

Function Name:

unsigned char* doPasswordDigest(unsigned char *nonce_coded,char
*created,char *passwordin)

 

Function Details:

This function is responsible for create SHA-1 hashes form nonce, created
and password and convert this SHA-1 hashes to Base 64 encoded schema. 

 

Input parameters:

unsigned char *nonce_coded - Base 64 encoded nonce as First parameter.

char *created                        - Created .

char *passwordin                  - password as a char array. 

 

Note: 

If NULL parameters are passed to 'nonce_coded' or 'created' then, this
function ignores the NULL values and calculates the SHA-1 hash from the
rest. 

 

 

Your comments and contributions would be very much appreciated.

 

 

G J Asanka Priyanjith

Priyanjith@gmail.com

+94714817244

 



--------------------------------------------------------------------------------------------------
This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is intended for the addressee only.  Any unauthorized disclosure, use, dissemination, copying, or distribution of this message or any of its attachments or the information contained in this e-mail, or the taking of any action based on it, is strictly prohibited.  If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this message.