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
function a () {
var pri = "c14a12e8670975d9196b06617a68df840d128918e794132c82a984a9fcca8b60";
var pub = "048eb7b65f08bcea7b1f00985f86f5f67041c0bc43b56d2993478c21ed90a5d1743feb44d55bf285308fdedc8547f6647d7d4a26eeb6866f5a55357b137dacb542"
var s = "{\"eParam\":\"04f019f9146a36e5272c4b250a89b3ebec0d786c1219aa00d00d3acaf7c866961fbad28efccae149c6ca8cb47d4ed766d1db14ca8a1d6ea0652048ecfcec04e0d3457801f5387dcfd4b228c71829d9e8d46688a1bf3b0967ccdd85cf29027ae14c1275bb1a482ef8f45ccd6638fc8f777f1336cb200bdb63ecab6f4fa576ec42ff261d74ef7be6d31cd9376cda510b37c60d5fd32ed86618c6f4e4563259021b007088357a73e1a88c309b0f8f345bda86a013f85240ca1bd7249d9a85d7cd70f5436a281e04c585807aa0cb3a85\"}";
for (var i = 0; i < 100; i++) {
var ct = sm2Encrypt(s, pub, 0);
try {
var dt = sm2Decrypt(ct, pri, 0);
} catch (e) {
console.error("出错了", ct, e)
}
console.log(i);
}
}
源文比较长的时候
试过做 一个100次的循环,会有几率出现加密出来的密文不正确,解析不出来
The text was updated successfully, but these errors were encountered: