Exception in AES decryption algorithm in java

后端 未结 3 1381
太阳男子
太阳男子 2020-12-08 06:03

I got an exception in the following code for AES algorithm in java.

Code decryptes an encrypted string and returns the original string.

Plz help me to fix t

3条回答
  •  轮回少年
    2020-12-08 06:24

    Well if this is the error Input length must be multiple of 16 when decrypting with padded cipher. Than the answear is obvious, the length of your buffer must be a multiple of 16. Have you checked the length of buf[]?

提交回复
热议问题