View Source PrimaAuth0Ex.TokenProvider.TokenEncryptor (prima_auth0_ex v0.5.0)

Module to perform authenticated symmetric encryption of binaries.

The key used for encryption is set from config:

config :prima_auth0_ex, :client,

cache_encryption_key: "uhOrqKvUi9gHnmwr60P2E1hiCSD2dtXK1i6dqkU4RTA="

Link to this section Summary

Link to this section Functions

@spec decrypt(String.t()) :: {:ok, String.t()} | {:error, any()}
@spec encrypt(String.t()) :: {:ok, String.t()} | {:error, any()}