Simple Python package for steganography
Project description
This is a simple Python package for steganography
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.2.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file easylsb-1.0.2.tar.gz
.
File metadata
- Download URL: easylsb-1.0.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e087e878ee9c982415062ffc976478b41b538b38bb533b0d90a3fe129bede6a |
|
MD5 | d65a049c281e4fdd941da66e6b7c240a |
|
BLAKE2b-256 | 7593f65c7904259bb802d871a5b420354d308ded0696be001368e76fdec8efe6 |
File details
Details for the file easylsb-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: easylsb-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fcf4b2400dc87fb6f9f4688553c5593f40e173f0003a02a0e72b7b8989bd110 |
|
MD5 | 29a1a542a75cdcf972c32bb1a88fd6d0 |
|
BLAKE2b-256 | 4260a20f3216fcf6a0c7ec76fe5d4404ee72e11499d3471d69c791bf03a624b8 |