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

value of interruptStep raised to reduce the setTimeout calls #202

Closed
wants to merge 1 commit into from

Conversation

Tschuck
Copy link

@Tschuck Tschuck commented May 15, 2018

Using scrypt-async-js library can cause an incredible amount of setTimeouts calls. On weaker devices this can lead to the browser only executing the callback of the setTimeouts after 10 - 80 seconds.

With an adjusted "interruptStep" value the number of setTimeouts can be drastically reduced.

#200

@Tschuck
Copy link
Author

Tschuck commented May 15, 2018

As an alternativ, Dmitry Chestnykh has implemented a scrypt adjustment for automatic calculation of the interruptStep value. Maybe you can use this implementation in the future.

https://www.stablelib.com/modules/_scrypt_scrypt_.html (see deriveKeyNonBlocking)
(source: https://github.com/StableLib/stablelib/tree/master/packages/scrypt)

npm install @stablelib/scrypt

Maybe it will work well for such situations.

@Tschuck Tschuck closed this Dec 7, 2020
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