Encryption vault for OAuth token storage.
Summary
Functions
Returns a specification to start this module under a supervisor.
Decrypts data using the appropriate cipher.
Encrypts data using the default cipher.
Gets the encryption key from application configuration.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Decrypts data using the appropriate cipher.
Returns {:ok, plaintext} or {:error, reason}.
Encrypts data using the default cipher.
Examples
encrypted = Tango.Vault.encrypt("sensitive_token")
decrypted = Tango.Vault.decrypt(encrypted)
Gets the encryption key from application configuration.
This function is called by Cloak to get the encryption key at runtime.