Simple Python package for steganography
Project description
This is a simple Python package for steganography
Now this package can automatically detect the encoding of the hidden text using the '-a' argument. Code to hide information in the given image:
import lsb
from PIL import Image
import numpy as np
img=Image.open('test.png')
img=np.array(img)
info=b'Some information'
hidden=lsb.lsbenc(img,info)
img_hidden=Image.fromarray(hidden)
img_hidden.save('hidden.png')# Must be a PNG,BMP,etc., not JPEG or WEBP
Code to get the hidden information from the given image:
import lsb
from PIL import Image
import numpy as np
img=Image.open('test.png')# Must be a PNG,BMP,etc., not JPEG or WEBP
img=np.array(img)
info=lsb.lsbdec(img)
print(info)
It's very easy to use the StegSolve tool to get the hidden information, but easylsb package allows you to encrypt the information using DES.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easylsb-1.0.5.tar.gz
(4.4 kB
view hashes)