Skip to content

CreateAccount: Fix - Use crypto.randomBytes for salt generation#2175

Open
cmgustavo wants to merge 1 commit into
bitpay:developfrom
cmgustavo:bug/salt-generation-for-create-account-01
Open

CreateAccount: Fix - Use crypto.randomBytes for salt generation#2175
cmgustavo wants to merge 1 commit into
bitpay:developfrom
cmgustavo:bug/salt-generation-for-create-account-01

Conversation

@cmgustavo
Copy link
Copy Markdown
Member

Replace PBKDF2-based salt generation with crypto.randomBytes, consistent with the approach already used in pin.ts.

The previous implementation could pass 0 iterations to pbkdf2Sync and blocked the JS thread unnecessarily. This PR doesn't affect current users.

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