wisp icon indicating copy to clipboard operation
wisp copied to clipboard

doc: add example of secret key base usage

Open SturmDerLiebe opened this issue 4 months ago • 1 comments

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

SturmDerLiebe avatar Jul 31 '25 20:07 SturmDerLiebe

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.

lpil avatar Aug 03 '25 16:08 lpil