Skip to content

feat(auth): add password hashing and session tokens - #19

Merged
pitercoding merged 2 commits into
mainfrom
feat/auth-primitives
Nov 23, 2026
Merged

pitercoding merged 2 commits into
mainfrom
feat/auth-primitives

Conversation

@pitercoding

Copy link
Copy Markdown
Owner

Adds the pure building blocks of phase 1 authentication:

  • argon2id password hashing in PHC format; the parameters live inside
    the hash, and malformed hashes return an error instead of panicking
  • session tokens: 32 random bytes, only the SHA-256 is stored

No database or HTTP involved; covered by fast unit tests.

@pitercoding
pitercoding merged commit 73bd3dd into main Nov 23, 2026
4 checks passed
@pitercoding
pitercoding deleted the feat/auth-primitives branch November 23, 2026 09:05
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