Skip to content

feat(csrf): move to HMAC-SHA256 for token signing and add constant-time compare#558

Open
novanish wants to merge 1 commit intosergiodxa:mainfrom
novanish:feat/csrf-hmac-signing
Open

feat(csrf): move to HMAC-SHA256 for token signing and add constant-time compare#558
novanish wants to merge 1 commit intosergiodxa:mainfrom
novanish:feat/csrf-hmac-signing

Conversation

@novanish
Copy link
Copy Markdown

@novanish novanish commented Dec 7, 2025

Replaced plain SHA-256 hashing with hmac(SHA256) for CSRF token signatures. Added constantTimeEqual to prevent timing-based attacks.

…me compare

Replaced plain SHA-256 hashing with hmac(SHA256) for CSRF token signatures. Added constantTimeEqual to prevent timing-based attacks.
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.

1 participant