dsh-text-mask
文件与数据 活跃维护

dsh-text-mask

uckkk/dsh-text-mask

支持邮箱、手机号、身份证号、银行卡号、IP地址、密钥等多类敏感文本自动识别并掩码处理,轻量无外部依赖,部署使用门槛低,分享内容前可快速完成隐私信息脱敏,避免敏感数据意外泄露。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
5 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:uckkk/dsh-text-mask
git clone https://github.com/uckkk/dsh-text-mask.git
git clone git@github.com:uckkk/dsh-text-mask.git
README.md main

dsh-text-mask · 文本脱敏

把文本中的敏感信息(邮箱、手机号、身份证号、银行卡号、IP、密钥/令牌)替换为掩码,返回脱敏文本与命中计数。纯 Node 实现,无网络、无外部服务。

提供的工具

工具 作用
mask_text 脱敏文本中的 PII 与密钥

安装

dsh plugin add dsh-text-mask

安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-text-mask"。

用法示例

把这段日志里的敏感信息脱敏后再给我
→ 调用 mask_text(text="...")

安装

dsh plugin add github:uckkk/dsh-text-mask

安装即在本机运行第三方代码,请自行审阅源码。

安装

dsh plugin add github:uckkk/dsh-text-mask

使用

安装后在会话中调用该插件注册的工具即可。

许可

MIT

安装即在本机运行第三方代码,请自行审阅源码。