Skip to content

Defense-in-depth: Use HMAC with SHA-256 to hash API key - #100

Open
S3DFX-CYBER wants to merge 1 commit into
accuknox:mainfrom
S3DFX-CYBER:main
Open

Defense-in-depth: Use HMAC with SHA-256 to hash API key#100
S3DFX-CYBER wants to merge 1 commit into
accuknox:mainfrom
S3DFX-CYBER:main

Conversation

@S3DFX-CYBER

Copy link
Copy Markdown

Fixes #98
This PR Switches to HMAC-SHA-256 with a server-side pepper stored outside the DB (config/K8s secret), keeps the existing text column and lookup query unchanged, so it's a drop-in replacement.

Replace SHA-256 hashing with HMAC for API key.
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.

Defense-in-depth: API keys hashed with unsalted SHA-256 (weak crypto)

1 participant