kjur / jsrsasign

The 'jsrsasign' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp, CAdES and JSON Web Signature/Token in pure JavaScript.
https://kjur.github.io/jsrsasign
Other
3.25k stars 646 forks source link

jsrsasign 11.1.0 not support RSA encrypt and decrypt #622

Closed leverwwz closed 2 months ago

leverwwz commented 3 months ago

sir, please help to debug.

1、here is the case, update jsrsasign from 10.8.2 to 11.1.0, but failed to encrypt and decrypt when using rsa. rsa.genKeyPair(1024) rsa.encodeAny(plain, keyPair.publicKey)

2、error detal, Error: Cipher.encrypt: unsupported key or algorithm at Function.Object..KJUR.crypto.Cipher.encrypt

Likhith185 commented 2 months ago

@leverwwz any workaround on the above issue?

kjur commented 2 months ago

RSA encryption is no more supported since 11.0.0 for marvin vulnerability. Thank you for understanding.