Skip to content

一个轻量、无需服务器、开箱即用的文本隐写工具,使用零宽字符(ZWSP、ZWNJ)将秘密信息隐藏在普通文本中,实现“看不见的通信”。 A lightweight, serverless text steganography tool that hides secret messages in visible text using zero-width characters (ZWSP, ZWNJ), enabling "invisible" communication.

License

Notifications You must be signed in to change notification settings

yaokui2018/text-steganography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

🕵️ 文字隐写工具 / Text Steganography Tool

一个轻量、无需服务器、开箱即用的文本隐写工具,使用零宽字符(ZWSP、ZWNJ)将秘密信息隐藏在普通文本中,实现“看不见的通信”。
A lightweight, serverless text steganography tool that hides secret messages in visible text using zero-width characters (ZWSP, ZWNJ), enabling "invisible" communication.

🌐 在线体验 / Live Demo: https://toolshu.com/hide-text


🔍 功能特性 / Features

  • 纯前端运行:无需后端、不联网、无数据上传,隐私安全。
    Runs entirely in the browser — no server, no network, no data leak.

  • 💾 信息隐藏:将任意文本(如密码、消息)编码为零宽字符,嵌入到正常文本中。
    Hide any text (e.g. passwords, notes) into carrier text using invisible characters.

  • 🌐 双语界面:中文与英文并列显示,自动适配语言习惯。
    Bilingual UI with Chinese and English shown together.

  • 📱 响应式设计:支持手机、平板、桌面设备。
    Responsive design for mobile and desktop.

  • 🧩 单文件部署:整个工具仅一个 HTML 文件,可直接保存、分享或部署。
    Single HTML file — easy to save, share, or deploy.

  • 🔐 基础安全:隐藏内容肉眼不可见,适合轻量级隐私保护场景。
    Invisible to the naked eye — suitable for basic privacy use cases.


🛠️ 技术原理 / How It Works

本工具使用 Unicode 中的两个不可见字符:

  • \u200B — Zero Width Space (ZWSP) → 表示 0
  • \u200C — Zero Width Non-Joiner (ZWNJ) → 表示 1

隐藏过程

  1. 将秘密文本转为 UTF-8 字节,再转为二进制字符串;
  2. 遍历载体文本,在每个英文字母或数字后插入 ZWSPZWNJ 表示 01
  3. 若载体不足,则将剩余零宽字符追加在末尾。

提取过程

  1. 扫描输入文本中的 ZWSPZWNJ
  2. 按顺序还原为二进制流;
  3. 解码为 UTF-8 文本并输出。

⚠️ 注意:零宽字符可能在复制、粘贴、文本处理中被清除(如富文本编辑器),请在可信环境中使用。


🚀 使用方法 / How to Use

方法一:本地使用(推荐)

  1. 下载 steganography-zero-width.html
  2. 双击文件在浏览器中打开
  3. 填写“载体文本”和“秘密文本”,点击“生成”
  4. 复制输出文本,发送给他人
  5. 对方粘贴到“隐写文本”框,自动解析出隐藏内容

方法二:在线使用

👉 访问:https://toolshu.com/hide-text


📄 开源协议 / License

本项目采用 MIT License,欢迎学习、使用、修改与分发。

About

一个轻量、无需服务器、开箱即用的文本隐写工具,使用零宽字符(ZWSP、ZWNJ)将秘密信息隐藏在普通文本中,实现“看不见的通信”。 A lightweight, serverless text steganography tool that hides secret messages in visible text using zero-width characters (ZWSP, ZWNJ), enabling "invisible" communication.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages