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
New modern API which accepts options object (see README for documentation). The old "legacy" way to call scrypt function is still available and while it's marked as deprecated in documentation, we don't plan to remove it anytime soon.
Added support for scrypt parallelization parameter p > 1 with modern API. It can be used to increase CPU cost without increasing memory usage. Like reference implementation, it currently doesn't use multiple cores and thus runs sequentially.
Encoding argument, in addition to previously supported "hex" and "base64", now recognizes "binary": in this case the callback receives Uint8Array (it is equivalent to not specifying encoding and then doing new Uint8Array(result)). As before, if no encoding is specified, the callback receives Array of bytes as a result.