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 "
}