Skip to content

Use peppered PBKDF2 for hosted Free deployment - #4

Merged
Defiabell merged 1 commit into
mainfrom
feat/hosted-pbkdf2-pepper
Sep 19, 2026
Merged

Defiabell merged 1 commit into
mainfrom
feat/hosted-pbkdf2-pepper

Conversation

@Defiabell

Copy link
Copy Markdown
Owner

Hosted authentication previously used scrypt that consumed 172–326 ms CPU in production probes, blocking a reliable Workers Free launch. Replace it with PBKDF2-SHA256 (100,000 iterations) followed by HMAC with a separate mandatory Cloudflare secret; preserve captcha, recovery codes and limits. Remove the paid-only CPU setting.

The operator accepted the lower offline guessing resistance if both database and pepper leak. Hosted D1 has zero existing users; legacy formats require recovery reset.

Validation: 115 tests, TypeScript, real local browser login/upload/sharing/device flows, Wrangler dry run, independent security review. Production CPU will be measured after deployment.

@Defiabell
Defiabell merged commit 2bc67df into main Sep 19, 2026
1 check passed
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