필터 지우기
필터 지우기

Steganography

조회 수: 2 (최근 30일)
Light
Light 2012년 5월 26일
Hey guys,
I met some problems in encrypting information hidden in an image. So I have two images: one with a white font and black text, and the other could be any image (the 2 images have the same size). First, I have to replace the least significant bit of the "red" color of the image with the information contained in the "textimage". Then, extract the part in the "red" color of the resulting image which correspond to the encrypted information.
Second, I have to use an encryption key that consists of a sequence of 1, 2 and 3, corresponding to the color planes on which information will be coded, i.e. if the key is 231321, the first pixel of the image "imagedetexte.bmp" will be encoded in level 2 (ie "green"), the second pixel is encoded in the plane 3 (ie "blue"), the third in a plan, the fourth in the plane 3, the fifth in the plane 2, the sixth in plan 1.
Also, the program will incorporate a Graphic User Interface.
To sum up:
1- The program asks if the user wants to encrypt or decrypt.
2- Depending on the user's response, it asks the names of image files to encrypt or decrypt.
3- Ask for the encryption key in the form of a series of 1s, 2s and 3s (in the case of encryption) or in the form of coefficients of a polynomial (in the case of decryption).
4- display the result (resulting image or coded key).
Thanks a lot.
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 5월 26일
You forgot to ask a MATLAB question ?

댓글을 달려면 로그인하십시오.

답변 (3개)

Image Analyst
Image Analyst 2012년 5월 26일
What does "one with a white font and black text" mean? Text appears in a font, so are your letters and words black, or are they white? You can' t have it both ways unless you have some letters black and some letters white or have large letters and have a pattern, like a spotted pattern on very big letters.
For #1, you might use questdlg(). For #2 you might use uigetfile() or dir(). For #3, you might use inputdlg(). For #4 you might use imshow(), or image().

Light
Light 2012년 5월 27일
i mean a picture like this one : http://i47.tinypic.com/b4jihy.jpg and the other picture could be anything
  댓글 수: 11
Light
Light 2012년 5월 31일
Using the encryption key to decide which bit-plane to code the next bit into.
Walter Roberson
Walter Roberson 2012년 5월 31일
Convert the key from a decimal to a vector such as [2 3 1 3 2 1]. Then to know which plane to use for the K'th bit, access TheyKey(1 + mod(K-1, length(TheKey))) . Use if/else or switch() on that value to trigger the appropriate code.

댓글을 달려면 로그인하십시오.


Light
Light 2012년 5월 30일
I really need your help please. Thank you.
  댓글 수: 1
Image Analyst
Image Analyst 2012년 5월 31일
You won't be getting help from me. Like I said, I don't know your program and don't really know encryption that well either. It's never really been a need for me or my images and programs.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by