|
MarkLogic Connect
MarkLogic Connect Client API Collection
|
#include <MLCrypto.hpp>
Public Member Functions | |
| MLCrypto () | |
| MLCrypto (const MLCrypto &orig) | |
| std::string | md5 (const std::string &raw) const |
| std::string | toHex (const uint8_t *bytes, const size_t &length) const |
Crypto support classs
This class provides some basic wrappers around crypto hashing functions. It's expected that the implementation will be conditionally compiled to include the libraries appropriate to the platform.
| mlclient::internals::MLCrypto::MLCrypto | ( | ) |
Constructor
| mlclient::internals::MLCrypto::MLCrypto | ( | const MLCrypto & | orig | ) |
Copy constructor
| std::string mlclient::internals::MLCrypto::md5 | ( | const std::string & | raw | ) | const |
Returns the MD5 hash of the given string
| raw | The raw string to hash |
| std::string mlclient::internals::MLCrypto::toHex | ( | const uint8_t * | bytes, |
| const size_t & | length | ||
| ) | const |
Convert a set of bytes to a hex encoded string.
| bytes | The raw bytes |
| length | The length of the byte string |
1.8.10