mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 17:18:30 +02:00
Added comments in example3.sh
This commit is contained in:
parent
62316f10c1
commit
98fe828ffb
1 changed files with 9 additions and 1 deletions
|
@ -1,14 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Some tests of the LSB method which uses sets (slsb-set). Sets are used in order to select the pixels where the
|
||||
# message will be hidden.
|
||||
|
||||
|
||||
# Hide the message - LSB with a set defined by the identity function (f(x) = x).
|
||||
slsb-set --hide -i examples/pictures/Montenach.png -o ~/enc-identity.png --generator identity -m 'I like steganography.'
|
||||
|
||||
# Hide the message - LSB only.
|
||||
slsb --hide -i examples/pictures/Montenach.png -o ~/enc.png -m 'I like steganography.'
|
||||
|
||||
|
||||
|
||||
# Check if the two generated files are the same.
|
||||
sha1sum ~/enc-identity.png ~/enc.png
|
||||
|
||||
|
||||
# The output of slsb is given to slsb-set.
|
||||
slsb-set --reveal -i ~/enc.png --generator identity
|
||||
|
||||
# The output of slsb-set is given to slsb.
|
||||
slsb --reveal -i ~/enc-identity.png
|
||||
|
|
Loading…
Add table
Reference in a new issue