Crypto functions
Functions |
char * | rxv_spin_hash (apr_pool_t *pool, const char *uniq) |
char * | rxv_spin_hmac (apr_pool_t *pool, const char *uniq, const char *salt) |
Detailed Description
Crypto functions (mod_spin API)
Function Documentation
char* rxv_spin_hash |
( |
apr_pool_t * |
pool, |
|
|
const char * |
uniq | |
|
) |
| | |
Create MD5 hash, using ASCII letters only
- Parameters:
-
| pool | Pool for allocation the hash |
| uniq | String to hash |
- Returns:
- MD5 hash of the string, 32 bytes long, encoded [a-p]
- Example:
-
char* rxv_spin_hmac |
( |
apr_pool_t * |
pool, |
|
|
const char * |
uniq, |
|
|
const char * |
salt | |
|
) |
| | |
Create MD5 HMAC, using ASCII letters only
- Parameters:
-
| pool | Pool for allocation the hash |
| uniq | String to hash |
| salt | Key used for HMAC, must be 64 bytes long |
- Returns:
- MD5 HMAC of the string, 32 bytes long, encoded [a-p]
- Example:
-