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–2020 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.

Anonymization Functions

For anonymization functions are used same rules regarding ‘nullptr’ as for string functions: When the argument is ‘nullptr’, it returns again ‘nullptr’.

anonymize(str, keep_chars, keep_char_class = false)

(since EVL 2.1)

Example:

out->anonymized_username = anonymize(in->username);
anonymize_uniq()

(since EVL 2.1)

Example:

out->anonymized_username = anonymize_uniq(in->id);
anonymize_iban()

(since EVL 2.4)

Example:

string iban  = "NL91 ABNA 0417 1643 00"
string iban2 = "NL91ABNA0417164300"

anonymize_iban(iban)
              // return .... .... .... ....
anonymize_iban(iban2)
              // return ..................
anonymize_iban(iban, iban_anon::keep_country)
              // return NL.. .... .... .... ..
anonymize_iban(iban, iban_anon::keep_country_and_bank)
              // return NL.. ABNA .... .... ..
anonymize_iban(iban, iban_anon::whole, iban_form::grouped)
              // return .... .... .... .... ..
anonymize_iban(iban, iban_anon::whole, iban_form::compact)
              // return ..................
anonymize_iban(iban, iban_anon::keep_country, iban_form::compact)
              // return NL................