Thanks to visit codestin.com
Credit goes to github.com

Skip to content

crypt: make scrypt memory parameter configurable#9170

Open
fuldeka wants to merge 1 commit intorclone:masterfrom
fuldeka:master
Open

crypt: make scrypt memory parameter configurable#9170
fuldeka wants to merge 1 commit intorclone:masterfrom
fuldeka:master

Conversation

@fuldeka
Copy link

@fuldeka fuldeka commented Feb 11, 2026

What is the purpose of this change?

Scrypt is a memory-hard key derivation algorithm but the current default value 16384 (16MB) is outdated and barely protects against modern GPU attacks. This commit makes the N parameter configurable to help protect against brute-force attacks. Default remains 16384 (16MB) although I would recommend a way higher value in 2026.

Was the change discussed in an issue or in the forum before?

No. It's a small, reasonable and optional change.

Checklist

  • I have read the contribution guidelines.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate.
  • All commit messages are in house style.
  • I'm done, this Pull Request is ready for review :-)

- User can set scrypt_n config option to control scrypt memory usage for better protection against brute-force attacks
- Default remains 16384 (16MB) although I would recommend a way higher value in 2026
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