mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 00:58:32 +02:00
Reorganization of the steganalysis sub-module.
This commit is contained in:
parent
bc741a1c4e
commit
66c6f2b3a3
5 changed files with 9 additions and 9 deletions
|
@ -20,12 +20,12 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
|
||||
__author__ = "Cedric Bonhomme"
|
||||
__version__ = "$Revision: 0.6 $"
|
||||
__date__ = "$Date: 2016/08/04 $"
|
||||
__version__ = "$Revision: 0.7 $"
|
||||
__date__ = "$Date: 2016/08/25 $"
|
||||
__license__ = "GPLv3"
|
||||
|
||||
try:
|
||||
from stegano import steganalysisParity
|
||||
from stegano.steganalysis import parity
|
||||
except:
|
||||
print("Install Stegano: sudo pip install Stegano")
|
||||
|
||||
|
@ -40,5 +40,5 @@ parser.add_argument("-o", "--output", dest="output_image_file",
|
|||
arguments = parser.parse_args()
|
||||
|
||||
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)
|
||||
|
|
|
@ -7,13 +7,13 @@ Parity
|
|||
.. code-block:: bash
|
||||
|
||||
# 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-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-parity -i ./surprise.png -o ./surprise_st_secret.png
|
||||
|
||||
# Reveal with Sieve of Eratosthenes
|
||||
lsb-set reveal --generator eratosthenes -i ./surprise.png
|
||||
lsb-set reveal -i ./surprise.png --generator eratosthenes
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
#-*- coding: utf-8 -*-
|
||||
|
||||
from .steganalysisParity import *
|
||||
from .steganalysisStatistics import *
|
||||
from .parity import *
|
||||
from .statistics import *
|
||||
|
|
Loading…
Add table
Reference in a new issue