Text Blind Watermark in Python
Project description
text_blind_watermark
Put blind watermark into a text.
Can be used in
- 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)
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.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e9c2aff9f4fd5f5b0c8849f7953451cc4214366bf6b32186a359ea8e263b30a |
|
MD5 | 2440b2ed4ab3ac95246d2f20dbc41b89 |
|
BLAKE2b-256 | 203afae89ea1181d33f56190c11a289f06d02bdc018f419484a4c50da6f7d764 |
Close
Hashes for text_blind_watermark-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cee83e58c6405834d3624f203cf9cdf7133f7d4b64ad91a27d77a5a82bec6d26 |
|
MD5 | 640750f91efd5b2834bb5c53a216ce69 |
|
BLAKE2b-256 | 7ff33d94d428e42127e9fda6bd67d44bb07dde81d9bee3c307c28e9bd7536e5b |