Exceptional error while encrypting image with RSA

Asked By 10 points N/A Posted on -
qa-featured

 

Hi TechyV,

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.

SHARE
Answered By 5 points N/A #137957

Exceptional error while encrypting image with RSA

qa-featured

 

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

Best regards,

Related Questions