Skip to content

SChinchi/steganography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LSB Steganography

This a demonstration of how to efficiently implement LSB steganography on Python. In general, the most frequently mistakes observed are

  • Converting integers to strings for "bit manipulation" and then back to integers, when bitwise operations are more efficient
  • Loading a pixel array instead of using the original (and most likely compressed) file bytestream
  • Using loops instead of vectorisation

lsb_basic.py

This is a stripped down version with no bells and whistles and with only embedding in 1 LSB for the simplest implementation.

lsb_substitution.py

This is the main script, which supports the embedding in a dynamic number of least significant bits, compression of the secret, and the option to randomise the sequence of embedding pixels. It has a modular design so that it's easier build on top of it, or resuse various functions for different algorithms, e.g., embedding in DCT/DWT coefficients.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages