I am converting PHP code to Node JS. I am facing a issue with MD5 binary raw that is MD5('String',true)
and getting ???S?????????<]zVC..zv??????
. I have tried in Node.js but I am not getting same string on Node js.
Here is my code:
var md5 = require('md5');
var requestArray = [{
"fname": "mobilenumber",
"fvalue": '1234568970'
}, {
"fname": "phone",
"fvalue": '000000000'
}];
var post_data = JSON.stringify(requestArray);
var m = md5(post_data);
I have tried to pass true parameter but it's not working.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…