Wechat mini program SHA1withRSA signature function is very slow
lgr595555169 opened this issue · 1 comments
lgr595555169 commented
When using 2048 private keys for signature, wechat mini program takes more than 300ms。
let signature = new KJUR.crypto.Signature({"alg": "SHA1withRSA", "prvkeypem": priK});
kjur commented
Please use W3C Web Crypto API.
https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API