Skip to content

Error about secret_key - what does it do? #47

Answered by eapl-gemugami
sorenpeter asked this question in Q&A
Discussion options

You must be logged in to vote

It's being used to "encrypt" the persistent cookie for longer sessions, using HMAC technique:

$hash_calculated = hash_hmac(HASH_ALGORITHM, $data, $config['secret_key']);

More info: https://en.wikipedia.org/wiki/HMAC

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by eapl-gemugami
Comment options

sorenpeter
Jan 5, 2025
Maintainer Author

You must be logged in to vote
1 reply
@eapl-gemugami
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #46 on January 03, 2025 15:50.