wisp
wisp copied to clipboard
doc: add example of secret key base usage
While reading through the 1.8.0 and 2.0.0-rc1 docs, I was trying to understand what exactly the handler function's secret_key_base parameter would be responsible of signing and encrypting.
After scanning the example pages, I could see that it is at least used for Cookie Signing.
Would it be worth to include that info in the HexDocs as done in this PR or do you consider this an implementation detail?
What other areas is the secret_key_base used in, if any? I would update the PR accordingly
It would be anything at all that is signed or encrypted! It's not specific to cookies.
Encryption isn't offered presently, but it likely will be in future.