You are here

hide a file in a image

6 posts / 0 new
Last post
agdurrette
Offline
Last seen: 4 months 2 weeks ago
Developer
Joined: 2008-01-16 13:55
hide a file in a image

I created a windows batch file that will "hide" a file into a image.

Its not much but i am going to attempt to make a ahk version.

hope yall like it Blum
here is the code.

@echo off

title FileToImg

:main
echo This is a simple program that hides a file in an image.

set /p file= Name of the file here:

cls

set /p img= Name of the image here:

cls

set /p fileimg= Name of the output file here:

cls

copy /b %img% + %file% %fileimg%

cls

set /p more=Any more? yes/no:

cls

if %more%==yes goto main
if %more%==no exit

Nathan9222
Nathan9222's picture
Offline
Last seen: 2 years 6 months ago
Developer
Joined: 2007-12-06 22:35
K im glad you want to create

K im glad you want to create something that can do this, im sure this will be great once it is in ahk form. Please check out my program written in ahk that can do something like this. https://portableapps.com/node/15648 I will release a new update of it tomorrow. If you would like maybe we can join forces or you can use part of my code to save you some time. Let me know what you think about this and if you need help dont hesitate to ask as i would be glad to help. Wink

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

agdurrette
Offline
Last seen: 4 months 2 weeks ago
Developer
Joined: 2008-01-16 13:55
cool

Thats cool, your program is exactly what I wanted to make except the encrypting. I am a hands on learner so this will be a hands on project for me plus a couple other things i would like to make (like a growl like thing for twitter, facebook and myspace). if you don't mind i think i will use your code and you can use mine if you like Blum

"It's just an online installer. It's not going to mug you.", JTH
"The shell is the key to unlock Linux's greatest advantages."

ottosykora
Offline
Last seen: 3 weeks 1 day ago
Joined: 2007-10-11 17:48
be careful

with some high compressed picts. Sometimes when you open them in certain software, the compression is changed when you simply save them again. The additional bits inside are then lost.
While it is not so problematic to hide data in ordinary bitmap pic, it is not so simple in compression changing formats. Adding some random bits there and here will change lot of the mathematics behind the compression, checksums will not match and whole picture might become unreadable to lot of software.

The same applies to sounds. You can put some bits plus minus to wav file, not so simple to mp3 which is highly compressed format and often changes to it will make the whole file corrupt.

Also note: while it is often difficult to prove that some data has been added to plain bitmap, the plausibility checking build into the jpg format apparently makes it very easy to recognize that data has been added to it. Thats how forensic IT will prove that some pictures have been 'photoshopped'.

Otto Sykora
Basel, Switzerland

Nathan9222
Nathan9222's picture
Offline
Last seen: 2 years 6 months ago
Developer
Joined: 2007-12-06 22:35
K sounds good i look forward

K sounds good i look forward to see what you can come up with. Good luck ;P

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

agdurrette
Offline
Last seen: 4 months 2 weeks ago
Developer
Joined: 2008-01-16 13:55
i have a gui and now im

i have a gui and now im working on getting every thing set up :). tell me what you think so fare. im trying to get 2ButtonCancel: and 3ButtonCancel: to go to the first gui.

#NoTrayIcon
#SingleInstance force

Gui, Add, Text, x6 y10 w130 h30 , What do you want to do Hide or Unhide a file?
Gui, Add, Button, x6 y50 w130 h30 , Hide
Gui, Add, Button, x6 y90 w130 h30 , Unhide
Gui, Show, h140 w146, FIP

Return
GuiClose:
ExitApp
Return

;gui2
ButtonHide:
Gui, Destroy
Gui, 2:Add, Text, x6 y10 w220 h20 , Select the file/folder you wish to hide in a pic.
Gui, 2:Add, Edit, x6 y30 w190 h20 vFolder,
Gui, 2:Add, Button, x196 y30 w30 h20 , ...
Gui, 2:Add, Text, x6 y60 w220 h20 , Select the picture.
Gui, 2:Add, Button, x196 y80 w30 h20 , ..
Gui, 2:Add, Edit, x6 y80 w190 h20 vPic,
Gui, 2:Add, Button, x26 y120 w80 h30 , Hide
Gui, 2:Add, Button, x126 y120 w80 h30 , Cancel
Gui, 2:Show, h165 w240, FIP Hide

2ButtonCancel:

Return
2GuiClose:
ExitApp
Return

;gui3
ButtonUnhide:
Gui, Destroy
Gui, 3:Add, Text, x6 y10 w170 h30 , Select a picture with the file that you want to unhide.
Gui, 3:Add, Edit, x6 y40 w140 h20 vPic,
Gui, 3:Add, Button, x146 y40 w30 h20 , ..
Gui, 3:Add, Button, x16 y70 w60 h30 , Unhide
Gui, 3:Add, Button, x106 y70 w60 h30 , Cancel
Gui, 3:Show, h110 w190, FIP Unhide

3ButtonCancel:

Return
3GuiClose:
ExitApp

"It's just an online installer. It's not going to mug you.", JTH
"The shell is the key to unlock Linux's greatest advantages."

Log in or register to post comments