MarkLogic Connect
MarkLogic Connect Client API Collection
Public Member Functions | List of all members
mlclient::internals::MLCrypto Class Reference

#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
 

Detailed Description

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.

Constructor & Destructor Documentation

mlclient::internals::MLCrypto::MLCrypto ( )

Constructor

mlclient::internals::MLCrypto::MLCrypto ( const MLCrypto orig)

Copy constructor

Member Function Documentation

std::string mlclient::internals::MLCrypto::md5 ( const std::string &  raw) const

Returns the MD5 hash of the given string

Parameters
rawThe raw string to hash
Returns
The MD5 hash as a hex string
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.

Parameters
bytesThe raw bytes
lengthThe length of the byte string
Returns
The hex representaiton of the bytes

The documentation for this class was generated from the following file: