v1.0.2 — Important character encoding bug fix
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.