Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Gif steganography

by beretboy (Chaplain)
on Aug 10, 2001 at 05:51 UTC ( [id://103739]=note: print w/replies, xml ) Need Help??


in reply to Gif steganography

I beg you to post the code for bmp/jpg steganography.

"Sanity is the playground of the unimaginative" -Unknown

Replies are listed 'Best First'.
Re: Re: Gif steganography
by Ryszard (Priest) on Aug 13, 2001 at 02:18 UTC
    here is a bit of code that will handle the swapping part..
    sub swap { my ($filechar, $msgbit) = @_; $filechar=unpack("B8",$filechar); $filechar=~pack("B8",$filechar)=~(substr($filechar,-1,1)=$msgbit); return $filechar; }
    to hide the message i:
    1) calculate the number of bytes i'll need from the source file
    2) read the bytes into a buffer
    3) turn the hidden message into binary
    4) loop thru' the bit message and the file buffer replacing the low order bit
    5) putting the buffer back into the source file..

    reasonably easy...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://103739]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found