Skip to content

v1.3.0

Compare
Choose a tag to compare
@dchest dchest released this 06 Sep 12:21
· 24 commits to master since this release
v1.3.0
  • 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.
  • Fixed a typo in error message.