Wassup byters, I have a new script I'd like to share called "pichide.py". This script allows you to hide ANY file inside a .png or .jpg file and then extract it. Though there are two problems with this. Depending on what you hide the picture will get obviously big. Second it's real easy for people to see what you're hiding by just open the picture in any editor. But to people who ignore those things it's well hidden XD.
How it works:
step 1: Find ending magic number; At the end of PNG and JPG's(as well as every other file format) there are magic numbers, although you will never see them unless you open a given file in a hex-editor. These magic numbers indicate what kind of file a file IS(that's right, just changing the ending extension on a file doesn't necesarrily mean you changed how the computer views the file). In addition to the one at the beginning there is also one at the end(I'm not sure if all files have ending magic numbers) to indicate where it stops(I'm guessing).
step 2: replace with custom magic number with custom extraction number; Here I put my own custom magic number as a reference to where the actual file I'm hiding begins. After, when I finally need to retrieve the file it will look for this number and get everything after it up until the picture itself's, ENDING magic number.
step 3: append new file; Now I just write the file I'm hiding after it.
step 4: re-add the picture's original ending magic number; Self explanatory.
So here's a link to the code
After you run the program it will place a file in the directory you ran it in, with the same name as the picture you were using as a host for your hidden file, that begins with "h_". This is the file that you will use later in the extraction part of the program.