Text Blind Watermark in Python
Project description
text_blind_watermark
Put blind watermark into a text.
Can be used in
- dingding
- ...
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)
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.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3e3634ee286155fb33ba4066cfdc078e8a0ad7059f70fb759c02f5e32e5762c |
|
MD5 | 04decdf59b2048b1c42413cff9e3dece |
|
BLAKE2b-256 | 7691a065eeb4947207970108504c96af8cd7dd6dc6fba72e1485113a20a1bd47 |
Close
Hashes for text_blind_watermark-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9664748c8bc47589af5e4fe62ccf9d21957b759f7d72ba2e747d736cf8ea84dd |
|
MD5 | 06e2d64bf9fb431e22df1578b0e8af19 |
|
BLAKE2b-256 | ed8439a47fef6890861e547c10633b96b508c03fa8c2d96c5f6c567dec271c79 |