Skip to content

Fix issue #5995, added cookie encryption#7113

Open
emilANS wants to merge 10 commits intoexpressjs:masterfrom
emilANS:fix-issue-#5995
Open

Fix issue #5995, added cookie encryption#7113
emilANS wants to merge 10 commits intoexpressjs:masterfrom
emilANS:fix-issue-#5995

Conversation

@emilANS
Copy link

@emilANS emilANS commented Mar 18, 2026

Hello

This is a fix to the issue #5995 where i added functions to encrypt and decrypt cookies when are signed or unsigned

i used the encryption algorithm aes-256-gcm which i think is a very heavy algorithm for a cookie and i added an example on ./examples/encrypted-cookies

so programmers can see how the encryption cookie inner workings are

✅All tests passed

Thanks for reading and hoping to contribute to this amazing repository.

Fixes: #5995

@emilANS
Copy link
Author

emilANS commented Mar 19, 2026

Sorry for the chaotic commit history

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add encryption as a new feature/option to the cookies provided with secret

1 participant