Put blind watermark into a text.
Can be used in
- dingding
- pages
- zhihu.com
- ...
install
>pip install text_blind_watermark
from text_blind_watermark import embed, extract
wm = "绝密:两点老地方见!"
sentence = "这句话中有盲水印,你能提取出来吗?" * 16
twm = TextBlindWatermark(password='20190808')
twm.read_wm(watermark=watermark)
twm.read_text(text=text)
text_embed = twm.embed()
print("打上盲水印之后:")
print(text_embed)
Then, you can paste this text to where you need.
from text_blind_watermark import embed, extract
twm_new = TextBlindWatermark(password='20190808')
wm_extract = twm_new.extract(text_embed)
print("解出的盲水印:")
print(wm_extract)