Use RSA-OAEP. https://github.com/diafygi/webcrypto-examples#rsa-oaep---encrypt

Was this page helpful?