Doxygen
Loading...
Searching...
No Matches
md5hash.h File Reference
#include <array>
#include <string_view>
#include <cstdint>
#include <md5.h>
#include "dstring.h"
Include dependency graph for md5hash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::array< uint8_t, 16 > md5hash (const std::string_view &str)
DString md5str (const std::string_view &str)

Function Documentation

◆ md5hash()

std::array< uint8_t, 16 > md5hash ( const std::string_view & str)
inline

Definition at line 26 of file md5hash.h.

27{
28 std::array<uint8_t,16> result;
29 MD5Buffer(str.data(),str.length(),result.data());
30 return result;
31}

References md5hash().

Referenced by convertNameToFile(), generateAnonymousAnchor(), md5hash(), and md5str().

◆ md5str()

DString md5str ( const std::string_view & str)
inline

Definition at line 33 of file md5hash.h.

34{
35 char sigStr[33];
36 MD5SigToString(md5hash(str).data(),sigStr);
37 return sigStr;
38}
std::array< uint8_t, 16 > md5hash(const std::string_view &str)
Definition md5hash.h:26

References md5hash(), and md5str().

Referenced by DefinitionImpl::_docsAlreadyAdded(), checkWarnMessage(), convertNameToFile(), encodeDirName(), getProjectId(), md5str(), DotGraph::prepareDotFile(), MemberDefImpl::setAnchor(), and writeFileContents().