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 Amila De Silva <as...@virtusa.com> on 2004/07/14 05:19:33 UTC

Nonce generator

Hi all,
I have attached the Nonce generator ('Nonce.cpp') here with. The basic
functionality is as follows.
1. Generates a N-6 long random number (N is the length of the random
number). [generateNonce()]
2. Checks the previously generated random numbers (which is stored in a
file) to obtain a truly random number. [checkLinst()]
3. Writes the generated random number in to the pre-specified file for
future reference. [writeFile()]
2. Adds time (HHMMSS) to the end of the previously generated random
number. [getTime()]
3. Encodes it in to a Base64 chunk.
4. Returns the base64 chunk.
Your feedback is more than welcome. 
 
Amila De Silva
 


--------------------------------------------------------------------------------------------------
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.