Reorganization of the steganalysis sub-module.

This commit is contained in:
Cédric Bonhomme 2016-08-25 08:13:05 +02:00
parent bc741a1c4e
commit 66c6f2b3a3
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D
5 changed files with 9 additions and 9 deletions

View file

@ -20,12 +20,12 @@
# 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.6 $" __version__ = "$Revision: 0.7 $"
__date__ = "$Date: 2016/08/04 $" __date__ = "$Date: 2016/08/25 $"
__license__ = "GPLv3" __license__ = "GPLv3"
try: try:
from stegano import steganalysisParity from stegano.steganalysis import parity
except: except:
print("Install Stegano: sudo pip install Stegano") print("Install Stegano: sudo pip install Stegano")
@ -40,5 +40,5 @@ parser.add_argument("-o", "--output", dest="output_image_file",
arguments = parser.parse_args() arguments = parser.parse_args()
input_image_file = Image.open(arguments.input_image_file) input_image_file = Image.open(arguments.input_image_file)
output_image = steganalysisParity.steganalyse(input_image_file) output_image = parity.steganalyse(input_image_file)
output_image.save(arguments.output_image_file) output_image.save(arguments.output_image_file)

View file

@ -7,13 +7,13 @@ Parity
.. code-block:: bash .. code-block:: bash
# Hide the message with Sieve of Eratosthenes # Hide the message with Sieve of Eratosthenes
lsb-set hide -i ./tests/sample-files/Ginnifer-Goodwin.png -o ./surprise.png --generator eratosthenes -m 'Very important message.' lsb-set hide -i ./tests/sample-files/20160505T130442.jpg -o ./surprise.png --generator eratosthenes -m 'Very important message.'
# Steganalysis of the original photo # Steganalysis of the original photo
steganalysis-parity -i ./tests/sample-files/Ginnifer-Goodwin.png -o ./surprise_st_original.png steganalysis-parity -i ./tests/sample-files/20160505T130442.jpg -o ./surprise_st_original.png
# Steganalysis of the secret photo # Steganalysis of the secret photo
steganalysis-parity -i ./surprise.png -o ./surprise_st_secret.png steganalysis-parity -i ./surprise.png -o ./surprise_st_secret.png
# Reveal with Sieve of Eratosthenes # Reveal with Sieve of Eratosthenes
lsb-set reveal --generator eratosthenes -i ./surprise.png lsb-set reveal -i ./surprise.png --generator eratosthenes

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
#-*- coding: utf-8 -*- #-*- coding: utf-8 -*-
from .steganalysisParity import * from .parity import *
from .steganalysisStatistics import * from .statistics import *