Why crypto.createHash returns different output in new version?

后端 未结 2 1176
星月不相逢
星月不相逢 2020-12-15 23:24

Problem

I have node.js module that is using crypto.createHash to generate md5 hash.

Recently I noticed that hash g

2条回答
  •  爱一瞬间的悲伤
    2020-12-16 00:25

    Just like mark this issue in github: https://github.com/nodejs/node/issues/6813 is about the default encoding for digests that was changed to utf8 in v5/v6 and in v4 and earlier it was binary

提交回复
热议问题