public String printHexBinary(byte[] data) {
        StringBuilder hexBuilder = new StringBuilder();
        Formatter formatter = new Formatter(hexBuilder);
        for (byte b : data) {
            formatter.format("%02x", b);
        }
        return hexBuilder.toString();
    }
CommonCipher Public encryption/decryption

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