Picture encoding. A must read....

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
Dynamis
Forum Contributor
Posts: 122
Joined: Thu Jul 10, 2008 3:15 pm
Location: Indiana, US

Picture encoding. A must read....

Post by Dynamis »

I have been working on this for a few days now and I finally finished it. I'm pretty excited to present this to a limited public. The possibilities for its use are endless! Enjoy, give me feedback, and let me know what you think.

Text inside picture - Image Encoding
jack_indigo
Forum Contributor
Posts: 186
Joined: Sun Jun 08, 2008 11:25 pm

Re: Picture encoding. A must read....

Post by jack_indigo »

Steganagraphy, right?
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: Picture encoding. A must read....

Post by JAB Creations »

Now that is pretty dam nifty.

I have a secret message for you and the password is composed of the first six digits of the password from SpaceBalls...

*EDIT* - I shouldn't have saved with the default file name...gah what a noob mistake to make. :|
Last edited by JAB Creations on Thu Jul 17, 2008 4:10 pm, edited 1 time in total.
Dynamis
Forum Contributor
Posts: 122
Joined: Thu Jul 10, 2008 3:15 pm
Location: Indiana, US

Re: Picture encoding. A must read....

Post by Dynamis »

jack_indigo wrote:Steganagraphy, right?
Of course. I am going to add more image formats hopefully, and eventually make a version where you can encode a picture inside a picture... I'm not going to say what the possibilities are for that, but lets say its used quite often for illegal activities. I'm sure it has other possibilities as well. Any other ideas?
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: Picture encoding. A must read....

Post by Mordred »

Steganography.

The script's not actually working though.

Also, as all cryptography-related things old and open is better than new and closed.
Dynamis
Forum Contributor
Posts: 122
Joined: Thu Jul 10, 2008 3:15 pm
Location: Indiana, US

Re: Picture encoding. A must read....

Post by Dynamis »

It appears some special characters do not work. If you type in regular sentences, it works. I haven't gone through all the specifics yet, this is just a first release I quickly finished last night. I'll look into it more as what does and does not work.
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: Picture encoding. A must read....

Post by Mordred »

No, by "not working" I mean it gives me a desktop screenshot instead of the bitmap I uploaded, and when I feed it back the desktop bmp with the password it just returns rubbish.
Dynamis
Forum Contributor
Posts: 122
Joined: Thu Jul 10, 2008 3:15 pm
Location: Indiana, US

Re: Picture encoding. A must read....

Post by Dynamis »

Mordred wrote:No, by "not working" I mean it gives me a desktop screenshot instead of the bitmap I uploaded, and when I feed it back the desktop bmp with the password it just returns rubbish.
I have no idea what you are doing then. There definitely is no code to return a screen shot of your desktop. The code merely edits the .bmp byte array. The only type of picture you should get back is the encoded .bmp or nothing at all, please give me more detail on what you are doing exactly to get a screen shot of your desktop?
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: Picture encoding. A must read....

Post by Mordred »

Not my desktop, a desktop. It was apparently the same image JAB used before me, and a bug in your code served me that.
Dynamis
Forum Contributor
Posts: 122
Joined: Thu Jul 10, 2008 3:15 pm
Location: Indiana, US

Re: Picture encoding. A must read....

Post by Dynamis »

Oh, I understand now. Yes, my code overwrites the image it displays every time, so if one person were to lag while another was encoding a picture elsewhere, you might get their picture displayed. I will change how that works as well.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Picture encoding. A must read....

Post by onion2k »

I wrote a steganography script once. http://www.ooer.com/13/Steganography-With-GD/1
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Picture encoding. A must read....

Post by alex.barylski »

I've seen something like this years ago on the screen savers...

Would it actually work with JPEG? Wouldn't being a lossy compression have a obfuscating effect on the password?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Picture encoding. A must read....

Post by onion2k »

The way mine works breaks with a jpeg. It uses lowest order bit in the color of each pixel to hide the data. In a jpeg you can't be certain what each color is going to be.
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: Picture encoding. A must read....

Post by Zoxive »

Hockey wrote:I've seen something like this years ago on the screen savers...

Would it actually work with JPEG? Wouldn't being a lossy compression have a obfuscating effect on the password?
Yea i saw this along time ago on the screen savers too.

You can even hide a file inside a bmp image file.
Post Reply