STEGANOGRAPHY ...

You con do Steganography in Python with just a few lines of code ...

Create two Python files ...

One named main.py and another steganography.py 

And have a picture in which we are going to embed the secret message ..

And I am going to use my HERO ...




The link for the image ... (or you can use any other image)


The code for main.py

from PIL import Image    # pip install pillow
import stepic            # pip install stepic


img=Image.open('joker.jpg') # opening the joker image
image=stepic.encode(img,b'''They Laugh At me Because I am Different.
I laugh At Then Because The are all the same''')
image.save('joker1.png','PNG') # saving the image
image=Image.open('joker1.png') # opening the new image
image.show()                     # displaying the image

The code for steganography.py

from main import image    # importing the image from main.py
from PIL import Image # importing the stuff that we installed
import stepic


img2 = Image.open('joker1.png') # opening the image
stegoImage = stepic.decode(img2) # decoding the image
print(stegoImage)        # printing the message

First run main.py ,the joker image will pop-up. Close the pop-up image .
Then run steganography.py , the joker image will pop-up again . Close the pop-up.
Our secret message will be waiting for us in the console ..😎

If we don't want to use Python , then there is an awesome online tool for steganography ..


or



















Comments

Popular posts from this blog

Testing insecure web server configurations ...

MOUSELOGGER IN PYTHON ..🤑🤑