Text Blind Watermark in Python
Project description
text_blind_watermark
Put blind watermark into a text.
- Video demo:https://www.bilibili.com/video/BV1m3411s7kT
- Online demo: https://www.guofei.site/pictures_for_blog/app/text_watermark/v1.html
Can be used in
- dingding
- zhihu.com
- ...
How to Use
install
>pip install text_blind_watermark
Alice Put her text watermark into a text:
from text_blind_watermark import TextBlindWatermark
watermark = "绝密:两点老地方见!"
text = "这句话中有盲水印,你能提取出来吗?" * 16
password = "20190808"
twm = TextBlindWatermark(password=password)
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 TextBlindWatermark
password = "20190808"
twm_new = TextBlindWatermark(password=password)
wm_extract = twm_new.extract(text_embed)
print("解出的盲水印:")
print(wm_extract)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for text_blind_watermark-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f769c6d23ce84c59a4bf0e8171f345b37731fa6179a188d0206e11f9dda92d7c |
|
MD5 | b86e25dd741fb54f640f11d590b73e26 |
|
BLAKE2b-256 | 45d4e66b936c1f54f5cff5e838d8910452ca903694ab8de65b896542dedec9e8 |
Close
Hashes for text_blind_watermark-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a282cf94c9eddf90a0d59001fdbf7387268f57f661def6ef38904d97ec1115da |
|
MD5 | 767110f95539f4e12042b02151504fa9 |
|
BLAKE2b-256 | 130ffe9b8f503eaf0e3983d893120818428a8d6a0feedfb6c5e151e617ed9fa7 |