Illegal Block Size Exception Input length must be multiple of 16 when decrypting with padded cipher
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In my application I am encrypting and decrypting data using secretKey. For that I am using AES algorithm. But I am getting exception in decrypt, one value out of three already encrypted values using secret key. Exception is: Illegal Block Size Exception Input length must be multiple of 16 when decrypting with padded cipher. Below is my code: Function to encyrpt value public static String symmetricEncrypt(String text, String secretKey) { BASE64Decoder decoder = new BASE64Decoder(); byte[] raw; String encryptedString; SecretKeySpec skeySpec;