N/APosted on - 12/11/2012
While encrypting an image with RSA I received an exceptional error message. I do not know the reason why this error occurred. I searched several sites to get a remedy of this issue but no result.
Have you any idea for the exceptional error?
Please help me to solve it.
Thanks in advance.
Exceptional error while encrypting image with RSA
Hi there user:
You get this error because Java exception takes place. RSA is slow to encrypt a bulk data. You will have to encrypt them one by one.
In this case, you will need to use AES to encrypt bulky data. This is because RSA cannot encrypt data which is huger than key’s size. Encrypt AES key with RSA and the whole image with AES 256 bit or set-up different AES key for each.
I suppose it’ll get fix by the above resolution.
Thanks for asking. Feel free to post again here at techyv.com