Skip to content

文本盲水印:把信息隐匿到文本中,put blind watermark into a text(invisible watermark for text).

License

Notifications You must be signed in to change notification settings

holmes-network/text_blind_watermark

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

text_blind_watermark

Put blind watermark into a text.

PyPI Build Status codecov License Python Platform stars fork Downloads

Can be used in

  • Wechat
  • dingding
  • pages
  • zhihu.com
  • ...

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 = "绝密:两点老地方见!"
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.

Bob Extract the invisible watermark

from text_blind_watermark import embed, extract

twm_new = TextBlindWatermark(password='20190808')
wm_extract = twm_new.extract(text_embed)
print("解出的盲水印:")
print(wm_extract)

About

文本盲水印:把信息隐匿到文本中,put blind watermark into a text(invisible watermark for text).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%