Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying custom hashing functions #195

Closed
Mrtenz opened this issue Nov 21, 2024 · 1 comment · Fixed by #197
Closed

Allow specifying custom hashing functions #195

Mrtenz opened this issue Nov 21, 2024 · 1 comment · Fixed by #197
Assignees

Comments

@Mrtenz
Copy link
Member

Mrtenz commented Nov 21, 2024

For performance reasons, it may be beneficial to use custom hashing functions (i.e., pbkdf2, hmac) instead of the ones used in key-tree by default. Especially in React Native, the native function seems to be much quicker.

@FrederikBolding
Copy link
Member

@Mrtenz It may be worth it to explore using globalThis.crypto where possible too as well, since there's a high chance that this will be faster inside the mobile execution environment as well.

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 a pull request may close this issue.

2 participants