Skip to content

feat(argon2): raise default memory cost to OWASP minimum (19 MiB) - #420

Merged
Mathieu Morrissette (mmorrissette-devolutions) merged 1 commit into
masterfrom
security/argon2-owasp-defaults
Oct 19, 2026
Merged

Mathieu Morrissette (mmorrissette-devolutions) merged 1 commit into
masterfrom
security/argon2-owasp-defaults

Conversation

@mmorrissette-devolutions

@mmorrissette-devolutions Mathieu Morrissette (mmorrissette-devolutions) commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Raise the default Argon2id memory cost from 4 MiB to 19 MiB to match the OWASP minimum (m=19 MiB, t=2, p=1).

The default Argon2id parameters used 4 MiB / t=2 / p=1, which is below the
OWASP Password Storage Cheat Sheet minimum (m=19 MiB, t=2, p=1). Raise the
default memory to 19456 KiB and make `Argon2Parameters::default()` read the
`defaults` constants instead of duplicating them.

Existing data is unaffected: parameters are serialized with every
derivation and read back from there. Password hashing (V2) already uses
64 MiB / t=3 and is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T18:13:58.323436Z 6a9a073 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mmorrissette-devolutions
Mathieu Morrissette (mmorrissette-devolutions) merged commit d397703 into master Oct 19, 2026
34 checks passed
@mmorrissette-devolutions
Mathieu Morrissette (mmorrissette-devolutions) deleted the security/argon2-owasp-defaults branch October 19, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants