Static Public Member Functions

CdcCrypto Class Reference

This static class implements some cryptographic functions I need. More...

#include <DcCrypto.h>

List of all members.

Static Public Member Functions

static void Init ()
 Initialize the class.
static void Destroy ()
 Destroy the class.
static CdcString GetRandomString (int len=16)
 This function returns a cryptographic secure random string of length len.
static CdcString MakeHash (const CdcString &buff)
 This function makes a hash string from a buffer.

Detailed Description

This static class implements some cryptographic functions I need.

Definition at line 32 of file DcCrypto.h.


Member Function Documentation

void CdcCrypto::Destroy (  ) [static]

Destroy the class.

Definition at line 42 of file DcCrypto.cpp.

CdcString CdcCrypto::GetRandomString ( int  len = 16 ) [static]

This function returns a cryptographic secure random string of length len.

Parameters:
lenThe length of the required string.
Returns:
(CdcString) Random string of length len.
Exceptions:
(CdcException)If cannot generate a random string.

Definition at line 48 of file DcCrypto.cpp.

void CdcCrypto::Init (  ) [static]

Initialize the class.

Definition at line 32 of file DcCrypto.cpp.

CdcString CdcCrypto::MakeHash ( const CdcString buff ) [static]

This function makes a hash string from a buffer.

Parameters:
buffString of the buffer to make the hash code from.
Returns:
(CdcString) The string of the hash result.
Exceptions:
(CdcException)If cannot make the hash.

Definition at line 71 of file DcCrypto.cpp.


The documentation for this class was generated from the following files: