Nonce string generator class.
More...
#include <asyncrt_utils.h>
|
enum | { default_length = 32
} |
| Define default nonce length. More...
|
|
Nonce string generator class.
Define default nonce length.
utility::nonce_generator::nonce_generator |
( |
int |
length = default_length | ) |
|
|
inline |
Nonce generator constructor.
- Parameters
-
length | Length of the generated nonce string. |
_ASYNCRTIMP utility::string_t utility::nonce_generator::generate |
( |
| ) |
|
Generate a nonce string containing random alphanumeric characters (A-Za-z0-9). Length of the generated string is set by length().
- Returns
- The generated nonce string.
int utility::nonce_generator::length |
( |
| ) |
const |
|
inline |
Get length of generated nonce string.
- Returns
- Nonce string length.
void utility::nonce_generator::set_length |
( |
int |
length | ) |
|
|
inline |
Set length of the generated nonce string.
- Parameters
-
length | Lenght of nonce string. |
The documentation for this class was generated from the following file: