Plug.Crypto.decrypt

You're seeing just the function decrypt, go back to Plug.Crypto module for more information.
Link to this function

decrypt(key_base, secret, token, opts \\ [])

View Source

Decrypts the original data from the token and verifies its integrity.

Options

  • :max_age - verifies the token only if it has been generated "max age" ago in seconds. A reasonable value is 1 day (86400 seconds)
  • :key_iterations - option passed to Plug.Crypto.KeyGenerator when generating the encryption and signing keys. Defaults to 1000
  • :key_length - option passed to Plug.Crypto.KeyGenerator when generating the encryption and signing keys. Defaults to 32
  • :key_digest - option passed to Plug.Crypto.KeyGenerator when generating the encryption and signing keys. Defaults to :sha256