From 38587c7839fc9feb5588a9ac218afce66f9d4f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Tue, 17 May 2016 08:37:35 +0200 Subject: [PATCH] The user now has the possibility to not store the copyright in the image. --- docs/index.rst | 9 +++++++-- stegano/exifHeader.py | 9 +++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 86a0f99..132ce77 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -6,8 +6,12 @@ Welcome to Stéganô's documentation! =================================== -.. toctree:: - :maxdepth: 2 +Presentation +============ + +.. figure:: https://api.travis-ci.org/cedricbonhomme/Stegano.svg?branch=master + :align: left + :target: https://travis-ci.org/cedricbonhomme/Stegano Stéganô_ is a Python steganography_ module. Steganography is the art and science of writing hidden messages in such a way that no one, @@ -16,6 +20,7 @@ of security through obscurity. Consequently, functions provided by Stéganô onl without encryption. Indeed steganography is often used with cryptography. + Requirements ============ diff --git a/stegano/exifHeader.py b/stegano/exifHeader.py index af04e18..26e59fd 100644 --- a/stegano/exifHeader.py +++ b/stegano/exifHeader.py @@ -20,13 +20,13 @@ # along with this program. If not, see __author__ = "Cedric Bonhomme" -__version__ = "$Revision: 0.1 $" -__date__ = "$Date: 2010/03/24 $" +__version__ = "$Revision: 0.2 $" +__date__ = "$Date: 2016/04/17 $" __license__ = "GPLv3" # Thanks to: http://www.julesberman.info/spec2img.htm -def hide(img, img_enc, copyright="http://bitbucket.org/cedricbonhomme/stegano", \ +def hide(img, img_enc, copyright="https://github.com/cedricbonhomme/Stegano", \ secret_message = None, secret_file = None): """ """ @@ -57,7 +57,8 @@ def hide(img, img_enc, copyright="http://bitbucket.org/cedricbonhomme/stegano", f = MinimalExifWriter(img_enc) f.removeExif() f.newImageDescription(text) - f.newCopyright(copyright, addYear = 1) + if copyright: + f.newCopyright(copyright, addYear = 1) f.process()