MCPcopy Create free account
hub / github.com/DFHack/dfhack / getHashFromString

Method getHashFromString

depends/md5/md5wrapper.cpp:91–94  ·  view source on GitHub ↗

* creates a MD5 hash from * "text" and returns it as * string */

Source from the content-addressed store, hash-verified

89 * string
90 */
91std::string md5wrapper::getHashFromString(std::string text)
92{
93 return this->hashit((unsigned char*)text.data(), text.length());
94}
95
96/*
97 * creates a MD5 hash from

Callers 2

onStateChangeMethod · 0.80
internal_md5Function · 0.80

Calls 3

hashitMethod · 0.95
lengthMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected