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
Last revisionBoth sides next revision
security:steganography [2011/12/29 10:08] – [Reveal the message] cedricsecurity:steganography [2016/07/05 13:01] cedric
Line 4: Line 4:
  
 <code bash> <code bash>
-hg clone http://hg.cedricbonhomme.org/stegano/ +sudo pip install Stegano
-cd stegano/ +
-sudo python setup.py install+
 </code> </code>
 +
 +You can read the [[http://stegano.readthedocs.io | 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 19: Line 20:
 We will dive into digital steganography. We will dive into digital steganography.
  
-The folowing sections will present some techniques of digital steganography.+The following sections will present some techniques of digital steganography.
  
 ===== Simple steganography art ===== ===== Simple steganography art =====
  
-In computer scinece a well known method of hiding data (message) is to concatenate these data to an archive.+In computer science a well known method of hiding data (message) is to concatenate these data to an archive.
 For example, if I want to hide a text file in a music file: For example, if I want to hide a text file in a music file:
  
Line 149: Line 150:
  
 <code bash> <code bash>
 +$ cd stegano
 +
 # LSB with The Eratosthenes set # 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+$ slsb-set --hide -i ./examples/pictures/Montenach.png -o ~/Montenach-enc-gen.png --generator eratosthenes -f ./examples/lorem_ipsum.txt
  
 # LSB only # LSB only
-$ slsb --hide -i ../examples/pictures/Montenach.png -o ./Montenach-enc.png  -f ../examples/lorem_ipsum.txt+$ slsb --hide -i ./examples/pictures/Montenach.png -o ~/Montenach-enc.png  -f ../examples/lorem_ipsum.txt
 </code> </code>
  
Line 161: Line 164:
 <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 186: Line 189:
 ==== 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 195: Line 198:
 . .
 . .
-$ slsb-set --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. Impossible to detect message.
  
-$ slsb-set --reveal --generator mersenne -i ./Montenach-enc-gen.png -b file.txt+$ 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