The AES front end is encrypted, but the back end cannot be decrypted. The code is as follows

1. CryptoJS

used in front-end js
public final static int AES_KEY_LENGTH = 32;
private final static byte[] IV = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
private final static String ALGORITHM = "AES";
private final static String MODE = "AES/CBC/PKCS5Padding";

//
public static byte[] decrypt(byte[] decryptKey, byte[] decryptBytes) throws Exception {
    IvParameterSpec zeroIv = new IvParameterSpec(IV);

    SecretKeySpec key = new SecretKeySpec(decryptKey, ALGORITHM);

    Cipher cipher = Cipher.getInstance(MODE);
    cipher.init(Cipher.DECRYPT_MODE, key, zeroIv);

    return cipher.doFinal(decryptBytes);
}

the algorithm looks confused, and the big god who knows it will show you what"s wrong, and I don"t appreciate it very much.

Jan.18,2022

has been resolved. Iv is an empty string.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b373bf-2b5c5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b373bf-2b5c5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?