You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a small library OTP application that acts as a helper. It encrypts and decrypts sensitive data
typically stored in processes state with a one-off key (key material must be provided on node start).
One example of such sensitive data is credentials used to access remote services.
This is necessary to avoid the sensitive values logged when process state is dumped by
the Erlang runtime (error_logger).
Note that this application cannot protect against heap dumping attacks and only helps
avoid sensitive data appearing in log files.
Supported Erlang/OTP Versions
This library uses the modern crypto API and requires Erlang 23.2 or a later version.
Usage
First, make the credentials_obfuscation application a dependency of your project.
Then, during the start-up of your application, and after the credentials_obfuscation application starts,
provide the secret value:
Lists (char lists in Elixir) will be converted to binaries before encryption.
This means that decrypted values will alwyas be returned as binaries.
Lists here mean "byte lists", that is Unicode characters are not
supported. This should still be sufficient for encryption of
URIs, generated credentials, and many kinds of sensitive identifiers.