tlx

Message Digests: MD-5, SHA-256, and SHA-512. More...

Classes

class  MD5
 MD-5 processor without external dependencies. More...
 
class  SHA1
 SHA-1 processor without external dependencies. More...
 
class  SHA256
 SHA-256 processor without external dependencies. More...
 
class  SHA512
 SHA-512 processor without external dependencies. More...
 

Functions

std::string md5_hex (const void *data, uint32_t size)
 process data and return 16 byte (128 bit) digest hex encoded More...
 
std::string md5_hex (const std::string &str)
 process data and return 16 byte (128 bit) digest hex encoded More...
 
std::string md5_hex_uc (const void *data, uint32_t size)
 process data and return 16 byte (128 bit) digest upper-case hex encoded More...
 
std::string md5_hex_uc (const std::string &str)
 process data and return 16 byte (128 bit) digest upper-case hex encoded More...
 
std::string sha1_hex (const void *data, uint32_t size)
 process data and return 20 byte (160 bit) digest hex encoded More...
 
std::string sha1_hex (const std::string &str)
 process data and return 20 byte (160 bit) digest hex encoded More...
 
std::string sha1_hex_uc (const void *data, uint32_t size)
 process data and return 20 byte (160 bit) digest upper-case hex encoded More...
 
std::string sha1_hex_uc (const std::string &str)
 process data and return 20 byte (160 bit) digest upper-case hex encoded More...
 
std::string sha256_hex (const void *data, uint32_t size)
 process data and return 32 byte (256 bit) digest hex encoded More...
 
std::string sha256_hex (const std::string &str)
 process data and return 32 byte (256 bit) digest hex encoded More...
 
std::string sha256_hex_uc (const void *data, uint32_t size)
 process data and return 32 byte (256 bit) digest upper-case hex encoded More...
 
std::string sha256_hex_uc (const std::string &str)
 process data and return 32 byte (256 bit) digest upper-case hex encoded More...
 
std::string sha512_hex (const void *data, uint32_t size)
 process data and return 64 byte (512 bit) digest hex encoded More...
 
std::string sha512_hex (const std::string &str)
 process data and return 64 byte (512 bit) digest hex encoded More...
 
std::string sha512_hex_uc (const void *data, uint32_t size)
 process data and return 64 byte (512 bit) digest upper-case hex encoded More...
 
std::string sha512_hex_uc (const std::string &str)
 process data and return 64 byte (512 bit) digest upper-case hex encoded More...
 

Detailed Description

Message Digests: MD-5, SHA-256, and SHA-512.

Function Documentation

◆ md5_hex() [1/2]

std::string md5_hex ( const std::string &  str)

process data and return 16 byte (128 bit) digest hex encoded

Definition at line 286 of file md5.cpp.

◆ md5_hex() [2/2]

std::string md5_hex ( const void *  data,
uint32_t  size 
)

process data and return 16 byte (128 bit) digest hex encoded

Definition at line 282 of file md5.cpp.

◆ md5_hex_uc() [1/2]

std::string md5_hex_uc ( const std::string &  str)

process data and return 16 byte (128 bit) digest upper-case hex encoded

Definition at line 294 of file md5.cpp.

◆ md5_hex_uc() [2/2]

std::string md5_hex_uc ( const void *  data,
uint32_t  size 
)

process data and return 16 byte (128 bit) digest upper-case hex encoded

Definition at line 290 of file md5.cpp.

◆ sha1_hex() [1/2]

std::string sha1_hex ( const std::string &  str)

process data and return 20 byte (160 bit) digest hex encoded

Definition at line 237 of file sha1.cpp.

◆ sha1_hex() [2/2]

std::string sha1_hex ( const void *  data,
uint32_t  size 
)

process data and return 20 byte (160 bit) digest hex encoded

Definition at line 233 of file sha1.cpp.

◆ sha1_hex_uc() [1/2]

std::string sha1_hex_uc ( const std::string &  str)

process data and return 20 byte (160 bit) digest upper-case hex encoded

Definition at line 245 of file sha1.cpp.

◆ sha1_hex_uc() [2/2]

std::string sha1_hex_uc ( const void *  data,
uint32_t  size 
)

process data and return 20 byte (160 bit) digest upper-case hex encoded

Definition at line 241 of file sha1.cpp.

◆ sha256_hex() [1/2]

std::string sha256_hex ( const std::string &  str)

process data and return 32 byte (256 bit) digest hex encoded

Definition at line 253 of file sha256.cpp.

◆ sha256_hex() [2/2]

std::string sha256_hex ( const void *  data,
uint32_t  size 
)

process data and return 32 byte (256 bit) digest hex encoded

Definition at line 249 of file sha256.cpp.

◆ sha256_hex_uc() [1/2]

std::string sha256_hex_uc ( const std::string &  str)

process data and return 32 byte (256 bit) digest upper-case hex encoded

Definition at line 261 of file sha256.cpp.

◆ sha256_hex_uc() [2/2]

std::string sha256_hex_uc ( const void *  data,
uint32_t  size 
)

process data and return 32 byte (256 bit) digest upper-case hex encoded

Definition at line 257 of file sha256.cpp.

◆ sha512_hex() [1/2]

std::string sha512_hex ( const std::string &  str)

process data and return 64 byte (512 bit) digest hex encoded

Definition at line 272 of file sha512.cpp.

◆ sha512_hex() [2/2]

std::string sha512_hex ( const void *  data,
uint32_t  size 
)

process data and return 64 byte (512 bit) digest hex encoded

Definition at line 268 of file sha512.cpp.

◆ sha512_hex_uc() [1/2]

std::string sha512_hex_uc ( const std::string &  str)

process data and return 64 byte (512 bit) digest upper-case hex encoded

Definition at line 280 of file sha512.cpp.

◆ sha512_hex_uc() [2/2]

std::string sha512_hex_uc ( const void *  data,
uint32_t  size 
)

process data and return 64 byte (512 bit) digest upper-case hex encoded

Definition at line 276 of file sha512.cpp.