Plug.Crypto.decrypt
You're seeing just the function
decrypt
, go back to Plug.Crypto module for more information.
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 toPlug.Crypto.KeyGenerator
when generating the encryption and signing keys. Defaults to 1000:key_length
- option passed toPlug.Crypto.KeyGenerator
when generating the encryption and signing keys. Defaults to 32:key_digest
- option passed toPlug.Crypto.KeyGenerator
when generating the encryption and signing keys. Defaults to:sha256