I'm trying to perform client side javascript rsa 2048 encryption on long texts > 1000 characters along with asynchronous 2048 bit key generation which is the best library for doing this ?
2 Answers
Try asmcrypto.js, I've recently added RSA support. Also AES to «encrypto long texts > 1000 characters» is already under the hood.
I'm an author of the library and answer any questions related to asmcrypto.js if any.
Depending on what you're trying to achieve, you may be able to accomplish it with Subtle.Crypto.
https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto