package
Version:
v1.1.0-beta.2
Opens a new window with list of versions in this module.
Published: Sep 23, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DataMasking 将 str 中出现的每一个 private 敏感串替换为占位符。
private 里的值是调用方已知的精确字符串(如 OAuth client secret/id),
因此这里做精确子串匹配即可,不需要模糊匹配。
连续被遮蔽的片段长度超过 5 时保留首尾字符方便定位,否则整段替换。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.