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.
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
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