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.