From 956268f7f53400e75f07147ab24721d288a79e18 Mon Sep 17 00:00:00 2001 From: smallchill Date: Mon, 24 Feb 2025 17:45:06 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20=E8=84=B1=E5=90=8D=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E7=B1=BB=E5=A2=9E=E5=8A=A0ip=E4=B8=8Emac=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/springblade/core/tool/sensitive/SensitiveType.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blade-core-tool/src/main/java/org/springblade/core/tool/sensitive/SensitiveType.java b/blade-core-tool/src/main/java/org/springblade/core/tool/sensitive/SensitiveType.java index e642ca5..9f357e0 100644 --- a/blade-core-tool/src/main/java/org/springblade/core/tool/sensitive/SensitiveType.java +++ b/blade-core-tool/src/main/java/org/springblade/core/tool/sensitive/SensitiveType.java @@ -29,6 +29,8 @@ public enum SensitiveType { EMAIL("电子邮箱", "(\\w{2})\\w+(@\\w+\\.\\w+)", "$1****$2"), ID_CARD("身份证号", "(\\d{4})\\d{10}(\\w{4})", "$1**********$2"), BANK_CARD("银行卡号", "(\\d{4})\\d+(\\d{4})", "$1****$2"), + IP_ADDRESS("IP地址", "(\\d{1,3}\\.\\d{1,3})\\.\\d{1,3}\\.\\d{1,3}", "$1.***.***"), + MAC_ADDRESS("MAC地址", "([0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}):[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}", "$1:****"), ; private final String desc;