Skip to content

Update scrypt parameter validation#1993

Merged
ap211unitech merged 2 commits intomasterfrom
fix/restrict-scrypt-params
Jun 18, 2025
Merged

Update scrypt parameter validation#1993
ap211unitech merged 2 commits intomasterfrom
fix/restrict-scrypt-params

Conversation

@ap211unitech
Copy link
Copy Markdown
Member

📝 Description

This PR upgrades the default scrypt parameters for stronger key derivation security.
It also replaces the fixed param check with a whitelist of known-safe configurations to prevent misuse of arbitrary, CPU-intensive inputs.
These changes improve both the security and maintainability of the scrypt implementation.

https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#scrypt

@ap211unitech ap211unitech self-assigned this Jun 18, 2025
Copy link
Copy Markdown
Member

@TarikGul TarikGul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@ap211unitech ap211unitech merged commit 60374f4 into master Jun 18, 2025
4 checks passed
@ap211unitech ap211unitech deleted the fix/restrict-scrypt-params branch June 18, 2025 16:06
@polkadot-js-bot
Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Jun 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants