Skip to content

v1.0.2 — Important character encoding bug fix

Compare
Choose a tag to compare
@dchest dchest released this 04 May 14:06
· 85 commits to master since this release

Previous versions incorrectly converted 3-byte character strings (such as in Chinese) to UTF8. If you passed password or salt as a string, you are affected: for 3-byte characters, the scrypt function produced incorrect result. If you passed Array or Uint8Array, you are not affected, as no UTF8 conversion is done in this case.

This version fixes the bug.