User Tools

Site Tools


security:steganography

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
security:steganography [2011/12/29 10:04] cedricsecurity:steganography [2012/09/15 16:47] – [Installation of Stéganô] cedric
Line 8: Line 8:
 sudo python setup.py install sudo python setup.py install
 </code> </code>
 +
 +You can read the [[http://stegano.readthedocs.org/ | documentation of Stéganô]] (included in the sources).
 +
 ====== Steganography ====== ====== Steganography ======
 Steganography is the art and science of writing hidden messages. Steganography is the art and science of writing hidden messages.
Line 146: Line 149:
 You must [[security:steganography#installation_of_stegano|install Stéganô]] before running these commands. You must [[security:steganography#installation_of_stegano|install Stéganô]] before running these commands.
  
-We will hide a message in a picture with the simple LSB method and with the LSP method + sets.+First, we will hide a message in a picture with the simple LSB method and with the LSB method + sets.
  
 <code bash> <code bash>
-$ slsb-set --hide -i ../examples/pictures/Montenach.png -o ./Montenach-enc-gen.png --generator eratosthenes -f ../examples/lorem_ipsum.txt +$ cd stegano 
-$ slsb --hide -i ../examples/pictures/Montenach.png -o ./Montenach-enc.png  -f ../examples/lorem_ipsum.txt+ 
 +# LSB with The Eratosthenes set 
 +$ slsb-set --hide -i ./examples/pictures/Montenach.png -o ~/Montenach-enc-gen.png --generator eratosthenes -f ./examples/lorem_ipsum.txt 
 + 
 +# LSB only 
 +$ slsb --hide -i ./examples/pictures/Montenach.png -o ~/Montenach-enc.png  -f ../examples/lorem_ipsum.txt
 </code> </code>
  
-The selected generator Sieve of Eratosthenes (''--generator eratosthenes'') will generate the set of points. This set of points will be used in order to select the pixels where the informations will be hidden.+The selected generator //Sieve of Eratosthenes// (''--generator eratosthenes'') will generate the set of points. This set of points will be used in order to select the pixels where the informations will be hidden.
  
 The following will generate the corresponding steganalysed pictures (left column): The following will generate the corresponding steganalysed pictures (left column):
 <code bash> <code bash>
 # Steganalysis of the original image # Steganalysis of the original image
-$ steganalysis-parity -i ../examples/pictures/Montenach.png -o ./Montenach-steg.png +$ steganalysis-parity -i ../examples/pictures/Montenach.png -o ~/Montenach-steg.png 
  
 # Steganalysis of the image with hidden text (LSB only) # Steganalysis of the image with hidden text (LSB only)
-$ steganalysis-parity -i ./Montenach-enc.png -o ./Montenach-enc-steg.png +$ steganalysis-parity -i ~/Montenach-enc.png -o ~/Montenach-enc-steg.png 
  
 # Steganalysis of the image with hidden text (LSB + Eratosthenes) # Steganalysis of the image with hidden text (LSB + Eratosthenes)
-$ steganalysis-parity -i ./Montenach-enc-gen.png -o ./Montenach-enc-gen-steg.png +$ steganalysis-parity -i ~/Montenach-enc-gen.png -o ~/Montenach-enc-gen-steg.png 
 </code> </code>
  
Line 183: Line 191:
 ==== Reveal the message ==== ==== Reveal the message ====
 <code bash> <code bash>
-$ slsb-set --reveal --generator eratosthenes -i ./Montenach-enc-gen.png -b file-gen.txt +$ slsb-set --reveal --generator eratosthenes -i ~/Montenach-enc-gen.png -b ~/file-gen.txt 
-$ slsb --reveal  -i ./Montenach-enc.png -b file.txt +$ slsb --reveal  -i ~/Montenach-enc.png -b ~/file.txt 
-$ cmp file-gen.txt file.txt  +$ cmp ~/file-gen.txt ~/file.txt  
-$ cat file.txt +$ cat ~/file.txt 
 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam placerat fermentum Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam placerat fermentum
 lorem, at porttitor metus congue eu. Mauris vitae tell lorem, at porttitor metus congue eu. Mauris vitae tell
Line 192: Line 200:
 . .
 . .
-python ./slsb-gen.py --reveal --generator fermat -i ./Montenach-enc-gen.png -b file.txt+$ slsb-set --reveal --generator fermat -i ~/Montenach-enc-gen.png -b ~/file.txt 
 +Impossible to detect message. 
 + 
 +$ slsb-set --reveal --generator mersenne -i ~/Montenach-enc-gen.png -b ~/file.txt
 Impossible to detect message. Impossible to detect message.
 </code> </code>
security/steganography.txt · Last modified: 2021/06/27 00:36 by cedric