Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: HELP: Hiding files(any type such .doc,.txt etc) inside an Image file(preferbly jpg) aka Steganography

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HELP: Hiding files(any type such .doc,.txt etc) inside an Image file(preferbly jpg) aka Steganography

    I am trying to make a GUI Java Program, where a file will be hidden inside an image file.
    So I have a rough idea which is as follows:
    Encryption
    1. Read an image file and a file(say file-2)
    2. Modify the code of image file, we modify the LSB(Least Significant Bit)
    3. The LSB's are replace with the code of the file-2
    4. A new image file is created.


    I want to first get the Encryption part clear.
    So guys help me...


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: HELP: Hiding files(any type such .doc,.txt etc) inside an Image file(preferbly jpg) aka Steganography

    Can you explain what type of encryption you are doing to the input file before its bits are inserted into the image?

    What kind of image file are you thinking of using? Does it preserve all the bits for the pixels of the image over reads and writes? For example, I think a jpeg image's pixels can be changed every time the image is written.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Mar 2013
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: HELP: Hiding files(any type such .doc,.txt etc) inside an Image file(preferbly jpg) aka Steganography

    Can you explain what type of encryption you are doing to the input file before its bits are inserted into the image?
    Sorry my mistake! I shouldn't have written 'encryption', instead I should have written Hiding.
    No encryption, just writing the bits of file-2 to image file using LSB so that there is negligible difference from the original (image file).

    What kind of image file are you thinking of using? Does it preserve all the bits for the pixels of the image over reads and writes? For example, I think a jpeg image's pixels can be changed every time the image is written.
    For convenient I am thinking of jpeg, and I want to alter the bits for the pixels using LSB for negligible difference.
    Also I am also wondering what size of file-2 can a 1920x1200 px jpeg accommodate?

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: HELP: Hiding files(any type such .doc,.txt etc) inside an Image file(preferbly jpg) aka Steganography

    To make sure the writing of a jpeg image doesn't change any of its contents, write a test program that reads and saves in memory the pixels from an image and then writes it and reads it back and compares the saved pixels with those read in to see if there were any changes made.

    what size of file-2 can a 1920x1200 px jpeg accommodate
    If one bit/pixel then divide the number of pixels by the number of bits / byte
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 0
    Last Post: November 13th, 2012, 07:02 AM
  2. Replies: 3
    Last Post: August 3rd, 2012, 10:40 AM
  3. [SOLVED] files size for files inside the JAR file
    By Natherul in forum Java Theory & Questions
    Replies: 3
    Last Post: February 9th, 2012, 03:17 PM
  4. Return the rgb values from a jpg image
    By newparticipant in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 25th, 2011, 03:47 PM
  5. Not able to put some files inside Zip file
    By chinnu in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: March 23rd, 2011, 05:17 AM

Tags for this Thread