The user now has the possibility to not store the copyright in the image.

This commit is contained in:
Cédric Bonhomme 2016-05-17 08:37:35 +02:00
parent d869dadcc0
commit 38587c7839
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D
2 changed files with 12 additions and 6 deletions

View file

@ -6,8 +6,12 @@
Welcome to Stéganô's documentation! Welcome to Stéganô's documentation!
=================================== ===================================
.. toctree:: Presentation
:maxdepth: 2 ============
.. 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. Stéganô_ is a Python steganography_ module.
Steganography is the art and science of writing hidden messages in such a way that no one, 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. without encryption. Indeed steganography is often used with cryptography.
Requirements Requirements
============ ============

View file

@ -20,13 +20,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/> # along with this program. If not, see <http://www.gnu.org/licenses/>
__author__ = "Cedric Bonhomme" __author__ = "Cedric Bonhomme"
__version__ = "$Revision: 0.1 $" __version__ = "$Revision: 0.2 $"
__date__ = "$Date: 2010/03/24 $" __date__ = "$Date: 2016/04/17 $"
__license__ = "GPLv3" __license__ = "GPLv3"
# Thanks to: http://www.julesberman.info/spec2img.htm # 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): 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 = MinimalExifWriter(img_enc)
f.removeExif() f.removeExif()
f.newImageDescription(text) f.newImageDescription(text)
f.newCopyright(copyright, addYear = 1) if copyright:
f.newCopyright(copyright, addYear = 1)
f.process() f.process()