I am testing the sending of text from a client to server application. I have generated a Public key and encode it as Base64. The text I want to send may have non-ASCII characters, so I Hex it. Normally the below line works fine, but I have been testing it will lots of characters.
Return Crypto.RSAEncrypt(EncodeHex(Data), DecodeBase64(PublicKey))
With too many characters, it gives the following CryptoException error:
Even if I use 10,000 or less characters, it gives the same error. Is there a size limit?