Perform RSA encryption / decryption using WebCrypto on files uploaded by user.

To generate public / private key pair for the purposes of this application you may use the following commnads with openssl: openssl genrsa -out test.pem 4096 openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in test.pem -out test.pkcs8 openssl rsa -in test.pem -pubout -out test.pem.pub
The most important take-aways were to extract the public key from the private key, and convert the private key to pkcs8 format.
You must upload test.pem.pub as the public cert, and test.pkcs8 as the private cert file below (or use your own filenames if you wish)
Encrypted Output:
Decrypted Output: