我正在生成以下字符串的 SHA256
{
"billerid": "MAHA00000MUM01",
"authenticators":
[
{
"parameter_name": "CA Number",
"value": "210000336768"
}
],
"customer":
{
"firstname": "ABC",
"lastname": "XYZ",
"mobile": "9344895862",
"mobile_alt": "9859585525",
"email": "[email protected] /cdn-cgi/l/email-protection",
"email_alt": "[email protected] /cdn-cgi/l/email-protection",
"pan": "BZABC1234L",
"aadhaar": "123123123123"
},
"metadata":
{
"agent":
{
"agentid": "DC01DC31MOB528199558"
},
"device":
{
"init_channel": "Mobile",
"ip": "124.124.1.1",
"imei": "490154203237518",
"os": "Android",
"app": "AGENTAPP"
}
},
"risk":
[
{
"score_provider": "DC31",
"score_value": "030",
"score_type": "TXNRISK"
},
{
"score_provider": "BBPS",
"score_value": "030",
"score_type": "TXNRISK"
}
]
}
我从不同的来源获得不同的 SHA256 输出。
这个网站:https://www.freeformatter.com/sha256-generator.html#ad-output https://www.freeformatter.com/sha256-generator.html#ad-output计算上述字符串的 SHA256:053353867b8171a8949065500d7313c69fe7517c9d69eaff11164c35fcb14457
本网站(https://emn178.github.io/online-tools/sha256.html https://emn178.github.io/online-tools/sha256.html)给出 SHA256 作为 eae5c26759881d48a194a6b82a9d542485d6b6ce96297275c136b1fa6712f253
我在Javascript中使用CryptoJs库来计算SHA256,这也给出了eae5c26759881d48a194a6b82a9d542485d6b6ce96297275c136b1fa6712f253这个结果。
我希望 SHA256 计算为: 053353867b8171a8949065500d7313c69fe7517c9d69eaff11164c35fcb14457
为什么不同地方的 SHA256 计算存在差异?