@Override
    public String encryptString(String plaintext) {
        try {
            Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
            cipher.init(Cipher.ENCRYPT_MODE, AES_KEY, AES_IV);
            byte[] ret = cipher.doFinal(plaintext.getBytes(StandardCharsets.UTF_8));
            return printHexBinary(ret);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
Navicat12 and above password encryption and decryption

@author lzy
chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/ncx/cipher/Navicat12Cipher.java