Skip to content

Python CLI Tool for steganography that uses LSB (Least Significant Bit) technique to hide data in images and audio files.

License

Notifications You must be signed in to change notification settings

myselfaryan/Stegnography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stegnography

This is a Python CLI Tool for steganography that uses LSB (Least Significant Bit) technique to hide data in images and audio files.

Usage

  1. Clone the repository
git clone https://github.com/myselfaryan/Stegnography.git
  1. Use the CLI Tool
$ cd steg

# Conceal data in a file
$ python3 cli.py conceal <data_file> <input_file> <output_file>

# Conceal data in a file taken from stdin
$ python3 cli.py conceal <input_file> <output_file> -

# Extract data from a file
$ python3 cli.py reveal <input_file> <output_file>

# Extract data from a file and print it to stdout
$ python3 cli.py reveal <input_file> -
  1. Example Usage
# Conceal data in an image file
$ python3 cli.py conceal test.txt ../tests/images/halle.png shakey_halle.png

# Conceal data in an image file taken from stdin
$ python3 cli.py conceal - ../tests/images/halle.png shakey_halle.png

# Extract data from an image file
$ python3 cli.py reveal shakey_halle.png output.txt

# Extract data from an image file and print it to stdout
$ python3 cli.py reveal shakey_halle.png -

# Conceal data in an audio file
$ python3 cli.py conceal test.txt ../tests/audio/bach_standard.wav shakey_bach.wav

# Conceal data in an audio file taken from stdin
$ python3 cli.py conceal - ../tests/audio/bach_standard.wav shakey_bach.wav

# Extract data from an audio file
$ python3 cli.py reveal shakey_bach.wav output.txt

# Extract data from an audio file and print it to stdout
$ python3 cli.py reveal shakey_bach.wav -
  1. Some Advanced Usage
# Conceal a secret message in an image file using GPG
$ echo "This is A Secret Message" | gzip | gpg -c --passphrase "password" | python3 cli.py conceal - ../tests/images/halle.png shakey_halle.png

# Extract a secret message from an image file using GPG
$ python3 cli.py reveal shakey_halle.png - | gpg -d --passphrase "password" | gzip -d

About

Python CLI Tool for steganography that uses LSB (Least Significant Bit) technique to hide data in images and audio files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages