PrimaAuth0Ex.TokenCache.TokenEncryptor (prima_auth0_ex v0.9.3)

View Source

Module to perform authenticated symmetric encryption of tokens.

Summary

Functions

decrypt(encrypted, key)

@spec decrypt(String.t(), <<_::32>>) :: {:ok, String.t()} | {:error, any()}

encrypt(plaintext, key)

@spec encrypt(String.t(), <<_::32>>) :: {:ok, String.t()} | {:error, any()}