You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@wy373226722 Why are you converting the input to a “binary” string anyway? MD5 and other hashes convert any input you pass to them to Buffers back anyway.
Activity
yi-ge commentedon May 17, 2016
crypto.createHash('md5').update(str, 'binary').digest(type || 'binary'); sorry
jasnell commentedon May 17, 2016
Yes, the default encoding for digests was changed to
utf8in v5/v6. In v4 and earlier it wasbinary.addaleax commentedon May 17, 2016
@wy373226722 Why are you converting the input to a “binary” string anyway? MD5 and other hashes convert any input you pass to them to
Buffers back anyway.