Comments (2)
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);
}
}
from sm2.
请问有解决吗
from sm2.
Related Issues (9)
- 怎么通过sm2 生成pkcs#10 HOT 1
- Error: Calling enrollment endpoint failed with error
- How to
- May I ask a question HOT 3
- IE 11 不支持
- 有几率出现异常,加密后,解密出错 HOT 1
- 解决 HOT 3
- 关于生成公私钥,用sm2.js,签名验签的问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sm2.