MCPcopy
hub / github.com/guofei9987/text_blind_watermark

github.com/guofei9987/text_blind_watermark @v0.0.2 sqlite

repository ↗ · DeepWiki ↗ · release v0.0.2 ↗
4 symbols 21 edges 4 files 0 documented · 0%
README

text_blind_watermark

Online demo: https://www.guofei.site/pictures_for_blog/app/text_watermark/v1.html

Put blind watermark into a text.

Can be used in - [x] Wechat - [x] dingding - [x] ...

How to Use

install

>pip install text_blind_watermark

Alice Put her text watermark into a text:

from text_blind_watermark import embed, extract

wm = "绝密:两点老地方见!"
password = '20190808'
sentence = "这句话中有盲水印,你能提取出来吗?" * 16

sentence_embed = embed(sentence, wm, password)
print("打上盲水印之后")
print(sentence_embed)

Then, you can paste this text to where you need.

It uses AES to encrypt

Bob Extract the invisible watermark

from text_blind_watermark import embed, extract
password = '20190808'
wm_extract = extract(sentence_embed, password)
print("解出的盲水印")
print(wm_extract)

Core symbols most depended-on inside this repo

read_file
called by 2
setup.py
embed
called by 1
text_blind_watermark/text_blind_watermark.py
extract
called by 1
text_blind_watermark/text_blind_watermark.py
read_requirements
called by 0
setup.py

Shape

Function 4

Languages

Python100%

Modules by API surface

text_blind_watermark/text_blind_watermark.py2 symbols
setup.py2 symbols

For agents

$ claude mcp add text_blind_watermark \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact