数据脱敏
UpBox优盒工具箱,免费在线数据脱敏:把日志、工单、截图里的手机号、邮箱、身份证、银行卡一键打码,保留可辨识的首尾位,贴出去前先过一遍。
无需注册 · 数据不上传No sign-up · nothing uploaded
原文Raw text
识别按常见格式:11 位手机号、18 位身份证、16 到 19 位银行卡、带 @ 的邮箱;手机号保留前 3 位与后 4 位,身份证保留前 6 后 4,邮箱只留首字母与域名,银行卡只留后 4 位
打码结果Masked
已脱敏
打码只处理肉眼可见的格式,不能替代合规:真要把日志发出去,先删掉不必要的字段;身份证与银行卡一旦泄露无法靠打码补救,本工具只是降低截图传播的风险
本工具所有运算在本地浏览器完成,你的文件、文本不会上传到服务器
工具介绍
贴日志求助时最容易忽略的就是手机号和身份证,一旦截图流出,打码也补不回来。 When pasting logs for help, phone and ID numbers are the easiest thing to forget, and once a screenshot is out masking cannot undo it.
四条规则各管一类数据,打码后仍保留首尾位,既能对上号又不暴露完整号码。 Four rules cover the usual patterns and keep the head and tail, so the record is still identifiable without exposing the full number.
- 四类识别Four patterns
- 按需开关Toggle per type
- 保留位数Keep digits
- 命中计数Match counts
使用说明
- 贴原文。Paste the raw text.
- 选要打码的类型。Choose which types to mask.
- 调保留位。Adjust kept digits.
- 复制打码结果。Copy the masked text.
常见问题
为什么身份证只留前 6 后 4?Why 6 and 4 for ID numbers?
前 6 位是地区码、后 4 位含校验位,中间是出生日期与顺序码,遮住中间既保留核对线索,又不暴露生日。The first six are the region code and the last four include the check digit, while the middle holds the birth date and sequence, so masking it keeps the record checkable without exposing a birthday.
电话号码会被误判吗?Can phone numbers be misdetected?
只认 1 开头、第二位 3 到 9 的 11 位数字;座机、分机号、订单号不在识别范围内,需要自己手工处理。It only matches 11-digit numbers starting with 1 and a second digit from 3 to 9; landlines, extensions and order numbers are not detected and need manual handling.
能打码姓名和地址吗?Can it mask names or addresses?
不能,姓名与地址没有稳定格式,正则容易误伤;这类内容建议直接删掉而不是打码。No, names and addresses have no stable shape and regex would misfire, so delete such content rather than mask it.
打码后就安全了吗?Is masked text safe?
不一定。保留的首尾位加时间戳等信息仍可能被反推,对外发布前最好连不必要字段一起删。Not necessarily: kept digits plus timestamps can still narrow a person down, so drop unneeded fields before publishing.