20 #ifndef MD5_HPP_70TU4G5T
21 #define MD5_HPP_70TU4G5T
35 USCXML_API
inline std::string md5(
const char* data,
size_t length) {
37 md5_byte_t digest[16];
40 md5_append(&state, (
const md5_byte_t *)data, length);
41 md5_finish(&state, digest);
43 std::ostringstream ss;
44 ss << std::hex << std::uppercase << std::setfill(
'0' );
45 for (
size_t i = 0; i < 16; i++) {
46 ss << std::setw( 2 ) << (int)digest[i];
52 USCXML_API
inline std::string md5(
const std::string& data) {
53 return md5(data.data(), data.size());
Definition: Breakpoint.cpp:26