ERR_CRYPTO_HASH_DIGEST_NO_UTF16


UTF-16 编码在 hash.digest() 中被使用。虽然 hash.digest() 方法确实允许传入 encoding 参数,从而使该方法返回字符串而不是 Buffer,但 UTF-16 编码(例如 ucsutf16le)是不被支持的。

【The UTF-16 encoding was used with hash.digest(). While the hash.digest() method does allow an encoding argument to be passed in, causing the method to return a string rather than a Buffer, the UTF-16 encoding (e.g. ucs or utf16le) is not supported.】