This static class implements some cryptographic functions I need. More...
#include <DcCrypto.h>
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. |
This static class implements some cryptographic functions I need.
Definition at line 32 of file DcCrypto.h.
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.
len | The length of the required string. |
(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.
This function makes a hash string from a buffer.
buff | String of the buffer to make the hash code from. |
(CdcException) | If cannot make the hash. |
Definition at line 71 of file DcCrypto.cpp.