Hide SECRET MESSAGE inside IMAGE FILE (.jpg) - Android - Termux - STEGHIDE Tool - Steganography
The method used in to hide Secret Message inside an Image File is called Steganography.
Steganography: (Greek: steganos- covered/hidden/concealed + graphe- writing).
In cryptography, It is a method or technique of hiding data inside a ordinary file like image, video or even in a audio file.
1.Installing STEGHIDE Tool in Termux (Android)
Use commands:
apt update
apt upgrade
pkg install Steghide
2.Creating a .txt file (.i.e the message file):
> filename.txt
"Or"
touch filename.txt
3.Now install a text editor tool in Termux:
pkg install nano
4.Edit the created .txt message file:
nano filename.txt
~now edit it(write message)~
To save: press volume-down button and X
y <enter>
5. Now copy an Image from Device's storage to Termux home directory:
(Note: Ensure you must have given storage access/permission to Termux)
cd /sdcard/folder
cp -f imagename.jpg $HOME
6. Now hiding Secret Message inside the Image:
cd $HOME
Encrypting:
steghide embed -ef filename.txt -cf imagename.jpg -sf newimagename.jpg -e none -Z
~it will ask for password that you have to set~
Now you can see A new IMAGE created(encrypted)by typing: ls
~Now you can send this New Encrypted Secret message containing image to your Friends~
First copy it to phone storage:
cp -f Newimagename.jpg /sdcard
Now the secret Message can be red by your friend by copying that image to Termux's home directory ($HOME)
Decrypting secret Message (inside image):
steghide extract -sf NewImagename.jpg -xf hiddentxt.txt
now a new hidden.txt file is created! Now just open it
cat hiddentxt.txt
"Now it will ask for password and after entering the password secret Message file will be opened!"
Watch it on YouTube:
Watch it on YouTube:
0 Comments