You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -44,10 +44,10 @@ Usage
44
44
Derives a key from password and salt and calls callback
45
45
with derived key as the only argument.
46
46
47
-
Calculations are interrupted with setImmediate (or zero setTimeout) at the
48
-
given interruptSteps to avoid freezing the browser. If interruptStep is not
49
-
given, it defaults to 1000. If it's zero, the callback is called immediately
50
-
after the calculation, avoiding setImmediate.
47
+
If interruptStep is set, calculations are interrupted with setImmediate (or
48
+
zero setTimeout) at the given interruptSteps to avoid freezing the browser.
49
+
If it's not set or if set to zero, the callback is called immediately after the
50
+
calculation, avoiding setImmediate.
51
51
52
52
#### Arguments:
53
53
@@ -63,7 +63,7 @@ after the calculation, avoiding setImmediate.
63
63
*`r` — block size parameter
64
64
*`p` — parallelization parameter (default is 1)
65
65
*`dkLen` — derived key length (default is 32)
66
-
*`interruptStep` — (optional) steps to split calculation with timeouts (defaults to 1000)
66
+
*`interruptStep` — (optional) steps to split calculation with timeouts (defaults to 0)
67
67
*`encoding` — (optional) result encoding `'base64'` or `'hex'` (result with be a `string`), `'binary'` (result will be a `Uint8Array`) or undefined (result will be an `Array` of bytes).
0 commit comments