security:steganography
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
security:steganography [2011/12/29 01:56] – cedric | security:steganography [2012/09/15 16:47] – [Installation of Stéganô] cedric | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Installation of Stéganô ====== | ||
+ | |||
+ | For the examples you need to install Stéganô. | ||
+ | |||
+ | <code bash> | ||
+ | hg clone http:// | ||
+ | cd stegano/ | ||
+ | sudo python setup.py install | ||
+ | </ | ||
+ | |||
+ | You can read the [[http:// | ||
+ | |||
====== Steganography ====== | ====== Steganography ====== | ||
Steganography is the art and science of writing hidden messages. | Steganography is the art and science of writing hidden messages. | ||
Line 135: | Line 147: | ||
===== Steganalysis of the LSB method with sets ===== | ===== Steganalysis of the LSB method with sets ===== | ||
- | We will hide a message in a picture with the simple LSB method and with the LSP method + sets. | + | You must [[security: |
+ | |||
+ | First, we will hide a message in a picture with the simple LSB method and with the LSB method + sets. | ||
<code bash> | <code bash> | ||
- | $ python ./slsb-gen.py | + | $ cd stegano |
- | $ python ./slsb.py --hide -i ../ | + | |
+ | # LSB with The Eratosthenes set | ||
+ | $ slsb-set --hide -i ./ | ||
+ | |||
+ | # LSB only | ||
+ | $ slsb --hide -i ./ | ||
</ | </ | ||
+ | The selected generator //Sieve of Eratosthenes// | ||
+ | |||
+ | The following will generate the corresponding steganalysed pictures (left column): | ||
<code bash> | <code bash> | ||
- | $ python | + | # Steganalysis of the original image |
- | $ python steganalysis-parity.py -i ./Montenach-enc-gen.png -o ./Montenach-enc-gen-steg.png | + | $ steganalysis-parity -i ../examples/ |
- | $ python | + | # Steganalysis of the image with hidden text (LSB only) |
+ | $ steganalysis-parity -i ~/ | ||
+ | |||
+ | # Steganalysis of the image with hidden text (LSB + Eratosthenes) | ||
+ | $ steganalysis-parity -i ~/Montenach-enc-gen.png -o ~/Montenach-enc-gen-steg.png | ||
</ | </ | ||
- | {{: | ||
- | {{ : | ||
+ | {{: | ||
+ | {{ : | ||
+ | |||
+ | {{: | ||
+ | {{ : | ||
+ | |||
+ | {{: | ||
+ | {{ : | ||
+ | |||
+ | |||
+ | Compare the pictures 1 and 2 and compare the pictures 1 and 3, left column. | ||
+ | |||
+ | ==== Reveal the message ==== | ||
+ | <code bash> | ||
+ | $ slsb-set --reveal --generator eratosthenes -i ~/ | ||
+ | $ slsb --reveal | ||
+ | $ cmp ~/ | ||
+ | $ cat ~/ | ||
+ | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam placerat fermentum | ||
+ | lorem, at porttitor metus congue eu. Mauris vitae tell | ||
+ | . | ||
+ | . | ||
+ | . | ||
+ | $ slsb-set --reveal --generator fermat -i ~/ | ||
+ | Impossible to detect message. | ||
+ | |||
+ | $ slsb-set --reveal --generator mersenne -i ~/ | ||
+ | Impossible to detect message. | ||
+ | </ | ||
security/steganography.txt · Last modified: 2021/06/27 00:36 by cedric