hash utils namespace
More...
|
| template<hash_function hash = MD_5> |
| std::string | getHashStr (std::string_view stringView) |
| |
| std::string | stringToHex (std::string_view in) |
| |
| std::string | hexToString (std::string_view in) |
| |
|
| constexpr std::array< unsigned char *(*)(const unsigned char *d, size_t n, unsigned char *md), 6 > | funcs |
| |
◆ hash_function
Enum for selected hash function
| Enumerator |
|---|
| SHA_224 | |
| SHA_256 | |
| MD_5 | |
| SHA_384 | |
| SHA_512 | |
| MD_4 | |
◆ getHashStr()
template<hash_function hash = MD_5>
| std::string hash_utils::getHashStr |
( |
std::string_view |
stringView | ) |
|
Generates hash string with specified hash function
- Template Parameters
-
- Parameters
-
◆ hexToString()
| std::string hash_utils::hexToString |
( |
std::string_view |
in | ) |
|
Converts hexadecimal string to string
- Parameters
-
◆ stringToHex()
| std::string hash_utils::stringToHex |
( |
std::string_view |
in | ) |
|
Converts string to hexadecimal string
- Parameters
-
◆ funcs
| constexpr std::array<unsigned char *(*)(const unsigned char *d, size_t n, unsigned char *md), 6> hash_utils::funcs |
|
constexpr |
Initial value:= {&SHA224, &SHA256,
&MD5, &SHA384, &SHA512,&MD4}