Decrypt an RSA message from browser with window.crypto.subtle APIs
问题 I'm trying to decode an RSA 2048 bit message encoded with a public key using the corresponding private key. The environment is google chrome and I'm using the window.crypto.subtle APIs. I generated the key couple and encoded the message using openssl tools: # generate keys and put the private one in file private_key.pem openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048 # extract public key in file public_key.pem openssl rsa -pubout -in private_key.pem -out