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

Module to perform authenticated symmetric encryption of binaries.

The key used for encryption is set from config:

config :prima_auth0_ex, :redis,

encryption_key: "uhOrqKvUi9gHnmwr60P2E1hiCSD2dtXK1i6dqkU4RTA="

Summary

Functions

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