public static String desensitizeSingleKeyword(final boolean desensitized, final String keyWord, final String source,
                                           final KeyWordMatch keyWordMatch, final String desensitizedAlg) {
        if (StringUtils.hasLength(source) && desensitized && keyWordMatch.matches(keyWord)) {
            return DataDesensitizeFactory.selectDesensitize(source, desensitizedAlg);
        } else {
            return source;
        }
    }
desensitize single keyword.

@param desensitized desensitized flag
@param keyWord keyword
@param source source data
@param keyWordMatch keyWordMatch
@param desensitizedAlg desensitized algorithm
@return desensitized data
shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-desensitize-api/src/main/java/org/apache/shenyu/plugin/logging/desensitize/api/utils/DataDesensitizeUtils.java