Results 1 to 9 of 9

Thread: Steganography

  1. #1
    sweets is offline Member
    Join Date
    Apr 2012
    Posts
    4
    Rep Power
    0

    Default Steganography

    Java Code:
    private static void embedBytes(byte[] bytes)
        {
            int size= bytes.length;
    
            for(int i=0; i< size; i++)
            {
                byte1= bytes[i];
                for(int j=6; j>=0; j-=2)
                {
                    byte2= byte1;
                    byte2>>= j;
                    byte2&= 0x03;
    
                    byte3= byteArrayIn[inputOutputMarker];
                    byte3&= 0xFC;
                    byte3|= byte2;
                    byteOut.write(byte3);
                    inputOutputMarker++;
                }
            }
        }
    The above is the Code which implements LSB technique.But am not able to grasp this code.Can any1 Please tell me the step by step working of this code.Thanks in advance

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Steganography

    Rather than asking others to comment on an uncommented code fragment, why not tell us what you do know, what you've tried and what specifically you don't understand. Surely you've studied the many links that Google has provided on this subject, right?

    For more on how to ask smart questions here, please see this link.

    For forum members, please see this link.

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default Re: Steganography

    Can you ask the programmer that wrote the code to document it for you to help you understand what it does. Otherwise Add a println statement after every statement that you do not understand. Have it print out the results of the statement. Make a small test program, create a byte array with values and Execute the method and look at what was printed.
    If you do not understand how a statement generated the printed output, copy the output and the statement here with your question.

    There are several variables used in the method that are not defined: byteArrayIn, inputOutputMarker and byteOut
    You will need to define them as class variables in your test program.
    Last edited by Norm; 04-07-2012 at 03:14 PM.
    If you don't understand my response, don't ignore it, ask a question.

  4. #4
    sweets is offline Member
    Join Date
    Apr 2012
    Posts
    4
    Rep Power
    0

    Default Steganography

    Can anyone please give me some ideas for improving my project.At present I have implemented LSB for 1 bit.Will LSB for 2 bits be an improvemnt for my project?If not please tell me how can i improve it?.Pls help me out.And if yes,tell me different ways as to how i can show the improvement.Can anyone tell me how to have a histogram for videos in java.Thanks in advance:)

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

    Default Re: Steganography

    Next time, don't abandon one thread, without so much as the courtesy to reply to the responses, and start a new one for the same question. I've merged the two threads.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  6. #6
    sweets is offline Member
    Join Date
    Apr 2012
    Posts
    4
    Rep Power
    0

    Default Re: Steganography

    @Darryl: okie.I am totally messed up with my project.It would be kind of u all if u help me out:)

  7. #7
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default Re: Steganography

    Can you explain your problem?
    If you don't understand my response, don't ignore it, ask a question.

  8. #8
    sweets is offline Member
    Join Date
    Apr 2012
    Posts
    4
    Rep Power
    0

    Default Re: Steganography

    Ok.I am doing my final year research project on steganography implemented using LSB i.e,Lease Significant bit .I have tried for 2 bits in LSB,dont seem to find any major difference in the video/image/audio.I browsed in net for the code,finally got a project which implements video steganography using LSB for 2 bits.
    When we are implementing our research project,we need to have some improvements for our implementation and we must show the results where in we show our project is the better 1
    1)Now either i have to step down for LSB for 1 bit
    2)Or i need to improvize more.
    3)So if you all have any idea about video steganography like which algorithm is the best and how it can be implemented please guide me
    Now is LSB for 1 bit a good solution or should i go for some other algorithm.Please help me out

  9. #9
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default Re: Steganography

    I have no experience with steganography. Looking at the altered images should help you determine if there is much difference between changing 2 bits vs 1 bit. It seems like it could be subjective.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Steganography in java
    By raj.mscking@gmail.com in forum New To Java
    Replies: 1
    Last Post: 02-02-2012, 12:23 PM
  2. Tutorial Steganography
    By raj.mscking@gmail.com in forum New To Java
    Replies: 0
    Last Post: 02-02-2012, 10:27 AM
  3. Steganography
    By AedonetLIRA in forum New To Java
    Replies: 5
    Last Post: 01-11-2011, 04:25 PM
  4. Steganography
    By munish in forum Advanced Java
    Replies: 1
    Last Post: 07-28-2009, 06:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •