Skip to content

Bump default pbkdf2 iterations - #4212

Merged
kajoseph merged 5 commits into
bitpay:masterfrom
kajoseph:bumpPbkdf2Iterations
Aug 6, 2026
Merged

Bump default pbkdf2 iterations#4212
kajoseph merged 5 commits into
bitpay:masterfrom
kajoseph:bumpPbkdf2Iterations

Conversation

@kajoseph

@kajoseph kajoseph commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Description

The current pbkdf2 iterations are lower than the OWASP recommended number. This can be overridden anyway but better to have a sensible number as default. Ideally, we'd migrate to something like Argon2id, but this is better than nothing in the meantime.

Changelog

  • Bump PBKDF2_ITERATIONS to OWASP recommended 600,000 iterations for SHA-256.

Testing Notes

All tests should pass. No breaking changes here. All previously encrypted payloads should work as before.


Checklist

  • I have read CONTRIBUTING.md and verified that this PR follows the guidelines and requirements outlined in it.

@kajoseph kajoseph added the BWC This pull request modifies the bitcore-wallet-client package label Aug 4, 2026
@kajoseph
kajoseph merged commit e20e72b into bitpay:master Aug 6, 2026
14 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BWC This pull request modifies the bitcore-wallet-client package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants