public String eval(String field, String key, String encrypt) {
        if (field != null) {
            String newValue = "";
            EncryptionType encryptionType = EncryptionType.getInstance(encrypt);
            switch (encryptionType) {
                case AES:
                    newValue = encryptAES(field, key);
                    break;
                case DESEDE:
                    newValue = encrypt3DES(field, key);
                    break;
                default:
                    throw new UnsupportedOperationException(String.format("Unsupported %s encryption type", encrypt));
            }
            return newValue;
        }
        return null;
    }
eval is String encryption execution method

@param field is the field to be encrypted
@return encrypted value
inlong-sort/sort-core/src/main/java/org/apache/inlong/sort/function/EncryptFunction.java