tlx
Loading...
Searching...
No Matches

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

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 276 of file md5.cpp.

◆ md5_hex() [2/2]

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

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

Definition at line 272 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 284 of file md5.cpp.

◆ md5_hex_uc() [2/2]

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

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

Definition at line 280 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 227 of file sha1.cpp.

◆ sha1_hex() [2/2]

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

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

Definition at line 223 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 235 of file sha1.cpp.

◆ sha1_hex_uc() [2/2]

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

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

Definition at line 231 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 243 of file sha256.cpp.

◆ sha256_hex() [2/2]

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

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

Definition at line 239 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 251 of file sha256.cpp.

◆ sha256_hex_uc() [2/2]

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

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

Definition at line 247 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 262 of file sha512.cpp.

◆ sha512_hex() [2/2]

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

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

Definition at line 258 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 270 of file sha512.cpp.

◆ sha512_hex_uc() [2/2]

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

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

Definition at line 266 of file sha512.cpp.