• (5 Pages)
  • +
  • « First
  • 3
  • 4
  • 5

Steganography Rate Topic: ***** 9 Votes

#61 Felipe_Lemos  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 10-February 14

Posted 11 February 2014 - 08:30 AM

Hi Willian,
Do you have any tutorial for steganography in audio mp3?
Thanks
Was This Post Helpful? 0
  • +
  • -

#62 hbilaiya  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 23-April 14

Posted 23 April 2014 - 09:37 AM

Hey, I know this is a very old post but I need some immediate help! So please reply ASAP.
My problem is that I want to damage the image pixels while encoding text into it. I am able to achieve this by using:
(ANDing by 1000 or anything other than 1)

private byte[] encode_text(byte[] image, byte[] addition, int offset)
	{
		if(addition.length + offset > image.length)
		{
			throw new IllegalArgumentException("File not long enough!");
		}
		
		for(int i=0; i<addition.length; ++i)
		{
			//loop through the 8 bits of each byte
			int add = addition[i];
			for(int bit=7; bit>=0; --bit, ++offset)
			{
				
				//int b = (add >>> bit) & 1; //original code (no distortion of pixels)
				
                                int b = (add >>> bit) & 1000; //1000 distorts image pixels
                                
				image[offset] = (byte)((image[offset] & 0xFE) | b );
			}
		}
		return image;
	}



Problem occurs while decoding the image. I can't figure out the way to decode the distorted image. This might be due to my lack of understanding the code.

But I really need to accomplish this. So anyone with a solution, please reply ASAP.

Thanks for the code BTW!
Was This Post Helpful? 0
  • +
  • -

  • (5 Pages)
  • +
  • « First
  • 3
  • 4
  • 5