From f61e885adb1cf4f75f07d35981e8cf4fa9ac84c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Thu, 4 Aug 2016 22:04:02 +0200 Subject: [PATCH] Updated CHANGELOG. --- CHANGELOG.rst | 5 ++++- docs/software.rst | 16 ++++++++++++++-- stegano/exifHeader/exifHeader.py | 1 + stegano/red/red.py | 1 + 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 9e70dfb..231d04f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,7 +4,10 @@ Release History 0.6 (not yet released) ------------------ -* improvements of the command line of Stéganô. +* improvements of the command line of Stéganô. The use of Stéganô through the + command line has slightly changed ('hide' and 'reveal' are now sub-parameters + of the command line). No changes if you use Stéganô as a module in your + software. The documentation has been updated accordingly. 0.5.5 (2016-08-03) ------------------ diff --git a/docs/software.rst b/docs/software.rst index 587207f..16165e5 100644 --- a/docs/software.rst +++ b/docs/software.rst @@ -34,6 +34,18 @@ Display help Output image containing the secret. +.. code-block:: bash + + $ lsb reveal --help + usage: lsb reveal [-h] -i INPUT_IMAGE_FILE [-o SECRET_BINARY] + + optional arguments: + -h, --help show this help message and exit + -i INPUT_IMAGE_FILE, --input INPUT_IMAGE_FILE + Input image file. + -o SECRET_BINARY Output for the binary secret (Text or any binary + file) + Hide and reveal a text message with the LSB method -------------------------------------------------- @@ -82,10 +94,10 @@ An other example: .. code-block:: bash # Hide the message - LSB with a set defined by the identity function (f(x) = x). - lsb-set hide -i ./tests/sample-files/Montenach.png -o ./enc-identity.png --generator identity -m 'I like steganography.' + lsb-set hide -i ./tests/sample-files/Montenach.png --generator identity -m 'I like steganography.' -o ./enc-identity.png # Hide the message - LSB only. - lsb hide -i ./tests/sample-files/Montenach.png -o ./enc.png -m 'I like steganography.' + lsb hide -i ./tests/sample-files/Montenach.png -m 'I like steganography.' -o ./enc.png # Check if the two generated files are the same. sha1sum ./enc-identity.png ./enc.png diff --git a/stegano/exifHeader/exifHeader.py b/stegano/exifHeader/exifHeader.py index 2733f44..ac031db 100644 --- a/stegano/exifHeader/exifHeader.py +++ b/stegano/exifHeader/exifHeader.py @@ -70,6 +70,7 @@ def reveal(input_image_file): if __name__ == "__main__": # Point of entry in execution mode. + # TODO: improve the management of arguments from optparse import OptionParser parser = OptionParser(version=__version__) parser.add_option('--hide', action='store_true', default=False, diff --git a/stegano/red/red.py b/stegano/red/red.py index f366d2a..d3429f3 100755 --- a/stegano/red/red.py +++ b/stegano/red/red.py @@ -97,6 +97,7 @@ def write(image, output_image_file): if __name__ == '__main__': # Point of entry in execution mode. + # Todo: improve the management of arguments from optparse import OptionParser usage = "usage: %prog hide|reveal [options]" parser = OptionParser(usage)