image steganography
v0.1.7

您所看到的不是一切。
此图像包含隐藏的数据。

Python>=3.8.x带pip
numpy==1.21.2
Pillow==8.3.2
fastapi==0.68.1
pydantic==1.8.2
uvicorn==0.15.0
python-multipart==0.0.5pip install -r requirements.txt将输入字符串转换为二进制,并替换每个像素的LSB
python hide.py或者
python hide.py -in image.png -out output.png -m message.txt在图像中的每个LSB加入以查看隐藏的字符串。
python seek.py或者
python seek.py -in output.png如果需要,可以在Web服务器上使用隐肌模块。
uvicorn main:app --host=0.0.0.0 --port=8000如果需要
cd steganography-web && yarn && yarn dev自动文档
检查一下
您可以检查图像路径或其他所需值。
{
"encoding" : " utf8 " ,
"bits" : 8 ,
"token_string" : " #secret# " ,
"message" : " ./message.txt " ,
"in_image" : " ./image.png " ,
"out_image" : " ./output.png " ,
"modified_image" : " ./output.png "
}