Skip to content

Hide secret texts/messages inside an image! And you can also optionally encrypt your texts with a password using AES-256 encryption before encoding into the image.

License

Notifications You must be signed in to change notification settings

lakshits11/image-cryptography

Repository files navigation

IMAGE CRYPTOGRAPHY

poster

Hide secret texts/messages inside an image! And you can also optionally encrypt your texts with a password using AES-256 encryption before encoding into the image.

Inspired from this Medium post

Installation

You can install the all requirements from requirements.txt by using pip.

pip install -r requirements.txt

Usage

python main.py

1

Encode

  • Choose Encode in the options menu

  • Enter the image path (with extension)

  • Enter the message to be hidden

  • Choose a password to encrypt with AES-256 (optional)

The image is encoded and saved as a PNG file.

Suppose the image to be encoded is this:

sample.jpg

Image Credits : Kristopher Roller


After encoding, image looks like this:

sample-enc.png

Visually, no change seen. The size change is just seen because I had to compress images to show in readme. Originally no change seen in images.

Decode

decoding

  • Choose Decode from the menu

  • Enter the path of the encoded image (with extension) and type in the password to decrypt (leave empty if no password was used)

The decoded text will be displayed on the terminal.

About

Hide secret texts/messages inside an image! And you can also optionally encrypt your texts with a password using AES-256 encryption before encoding into the image.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages