Pseudo
Pseudo is a tiny library that gives you helper functions for GDPR compliance.
Installation
If available in Hex, the package can be installed
by adding pseudo to your list of dependencies in mix.exs:
def deps do
[
{:pseudo, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/pseudo.
Usage
You can call the conceal/1 function on any string to pseudonymize the text for
GDPR compliance. For example,
email = "morty@yahoo.com"
Pseudo.conceal(email)
=> "m****@yahoo.com"
Or for concealing names of persons.
name = "Rick Sanchez"
Pseudo.conceal(name)
=> "R***********"
Docs can be found at https://hexdocs.pm/pseudo