Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Private MetaNew to Visual Studio Code? Get it now.
Private Meta

Private Meta

Scott Leung

|
85 installs
| (0) | Free
Encrypt sensitive information (URLs, emails, usernames) and decrypt on hover
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Private Meta

VSCode 插件,用于 C2 脱敏处理,自动加密敏感信息(URL、邮箱、用户名),悬停时解密查看。

功能

  • 保存文件时自动将敏感信息转换为更短的 [m:<u|e|l>:encoded] 格式(兼容旧 [meta:type:encoded])
  • feistel 下,长度 >=3 且命中内置字符集时会优先走长度保持模式(encoded 以 ~ 开头)
  • 悬停加密标签显示原始内容,支持复制、打开链接
  • 支持 .gn/.gni 的 # 注释
  • 支持按规则加密指定 JSON 字段(默认关闭)

preview

配置项

配置项 说明 默认值
privateMeta.encryptionKey 加密密钥 ucquark
privateMeta.encryptionAlgorithm 加密算法(默认 feistel,可选 aes/xor) feistel
privateMeta.domains URL/Email 域名白名单 ["antfin.com", ...]
privateMeta.maxFileSize 最大处理文件大小 1048576 (1MB)
privateMeta.enableJsonFieldEncryption 开启 JSON 字段加密 false
privateMeta.jsonFieldEncryptionRules JSON 字段加密规则("<filePattern>:<jsonPathPattern>[:<type>]",默认 type=user) []
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft