EVL Anonymization

Table of Contents


Products, services and company names referenced in this document may be either trademarks or registered trademarks of their respective owners.

Copyright © 2017–2021 EVL Tool, s.r.o.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Checksum Functions

md5sum(str)
sha224sum(str)
sha256sum(str)
sha384sum(str)
sha512sum(str)

(since EVL 1.0)

these standard checksum functions can be used in mapping this way for example:

*out->anonymized_username = sha256sum(*in->username);

When the argument is ‘nullptr’, it returns ‘nullptr’. But in such case you need to use pointer manipulation, so the example would look like:

out->anonymized_username = sha256sum(in->username);

Functions headers:

std::string  md5sum(const char* const str);
std::string  md5sum(const std::string& str);
std::string* md5sum(const std::string* const str);

std::string  sha224sum(const char* const str);
std::string  sha224sum(const std::string& str);
std::string* sha224sum(const std::string* const str);

std::string  sha256sum(const char* const str);
std::string  sha256sum(const std::string& str);
std::string* sha256sum(const std::string* const str);

std::string  sha384sum(const char* const str);
std::string  sha384sum(const std::string& str);
std::string* sha384sum(const std::string* const str);

std::string  sha512sum(const char* const str);
std::string  sha512sum(const std::string& str);
std::string* sha512sum(const std::string* const str);