From 18d1176ae86418e73ea3530a04328c549155b324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Sun, 20 Nov 2022 00:27:14 +0100 Subject: [PATCH] chg [release]: Updated changelog and documentation. --- CHANGELOG.md | 7 +++++++ docs/conf.py | 4 ++-- docs/module.rst | 6 +++--- pyproject.toml | 2 +- stegano/tools.py | 2 +- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33531dc..cb9f399 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ ## Release History +### 0.11.0 (2022-11-20) + +* Reduced memory footprint and processing speed, + the modules ``lsb`` and ``lsbset`` have been merged + ([PR #34](https://github.com/cedricbonhomme/Stegano/pull/34)). + + ### 0.10.2 (2022-01-13) * Stegano now uses Pillow 9.0.0 (CVE-2022-22815). diff --git a/docs/conf.py b/docs/conf.py index 44dc095..25a0a52 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -47,9 +47,9 @@ author = "Cédric Bonhomme " # built documents. # # The short X.Y version. -version = "0.9" +version = "0.11" # The full version, including alpha/beta/rc tags. -release = "0.9.4" +release = "0.11.0" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/module.rst b/docs/module.rst index 13040a8..e7e9797 100644 --- a/docs/module.rst +++ b/docs/module.rst @@ -9,7 +9,7 @@ LSB method .. code-block:: python - Python 3.10.0 (default, Oct 17 2021, 09:02:57) [GCC 11.2.0] on linux + Python 3.11.0 (main, Oct 31 2022, 15:15:22) [GCC 12.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from stegano import lsb >>> secret = lsb.hide("./tests/sample-files/Lenna.png", "Hello world!") @@ -26,7 +26,7 @@ Sets are used in order to select the pixels where the message will be hidden. .. code-block:: python - Python 3.10.0 (default, Oct 17 2021, 09:02:57) [GCC 11.2.0] on linux + Python 3.11.0 (main, Oct 31 2022, 15:15:22) [GCC 12.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from stegano import lsb >>> from stegano.lsb import generators @@ -112,7 +112,7 @@ For JPEG and TIFF images. .. code-block:: python - Python 3.10.0 (default, Oct 17 2021, 09:02:57) [GCC 11.2.0] on linux + Python 3.11.0 (main, Oct 31 2022, 15:15:22) [GCC 12.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from stegano import exifHeader >>> secret = exifHeader.hide("./tests/sample-files/20160505T130442.jpg", diff --git a/pyproject.toml b/pyproject.toml index 578892c..1582182 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "stegano" -version = "0.10.2" +version = "0.11.0" description = "A pure Python Steganography module." authors = [ "Cédric Bonhomme " diff --git a/stegano/tools.py b/stegano/tools.py index 7899cc4..549c64d 100755 --- a/stegano/tools.py +++ b/stegano/tools.py @@ -209,7 +209,7 @@ class Revealer: raise IndexError("Impossible to detect message.") if len(self._bitab) - len(str(self._limit)) - 1 == self._limit: - self.secret_message = "".join(self._bitab)[len(str(self._limit)) + 1:] + self.secret_message = "".join(self._bitab)[len(str(self._limit)) + 1 :] self.encoded_image.close() return True