From 979c6277b0450520732f4e8de210cc58b8cac491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Wed, 23 Dec 2015 21:33:05 +0100 Subject: [PATCH] Updated Python headers files. Added .gitignore. --- .gitignore | 27 +++++++++++++++++++++++++++ MANIFEST.in | 2 +- bin/slsb | 4 ++-- bin/slsb-set | 4 ++-- bin/steganalysis-parity | 4 ++-- stegano/basic.py | 4 ++-- stegano/exifHeader.py | 6 +++--- stegano/generators.py | 8 ++++---- stegano/slsb.py | 4 ++-- stegano/slsbset.py | 4 ++-- stegano/steganalysisParity.py | 8 ++++---- stegano/steganalysisStatistics.py | 6 +++--- stegano/tools.py | 8 ++++---- 13 files changed, 58 insertions(+), 31 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b1b84b --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +# use glob syntax +syntax: glob + +*.elc +*.pyc +*~ +*.db + +build/* +Stegano.egg-info/* +dist/* + +# Emacs +eproject.cfg + +# Temporary files (vim backups) +*.swp + +# Log files: +*.log + +# Vagrant: +.vagrant/ + +# Virtualenv +venv +build diff --git a/MANIFEST.in b/MANIFEST.in index fc787ff..af96f88 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,6 +6,6 @@ recursive-include bin * #Misc include COPYING -include README.md +include README.rst include CHANGELOG.md include requirements.txt diff --git a/bin/slsb b/bin/slsb index 72de135..79dd065 100755 --- a/bin/slsb +++ b/bin/slsb @@ -2,9 +2,9 @@ #-*- coding: utf-8 -*- # Stéganô - Stéganô is a basic Python Steganography module. -# Copyright (C) 2010-2011 Cédric Bonhomme - http://cedricbonhomme.org/ +# Copyright (C) 2010-2015 Cédric Bonhomme - https://www.cedricbonhomme.org # -# For more information : http://bitbucket.org/cedricbonhomme/stegano/ +# For more information : https://github.com/cedricbonhomme/Stegano # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/bin/slsb-set b/bin/slsb-set index 1265c32..fe8b3b9 100755 --- a/bin/slsb-set +++ b/bin/slsb-set @@ -2,9 +2,9 @@ #-*- coding: utf-8 -*- # Stéganô - Stéganô is a basic Python Steganography module. -# Copyright (C) 2010-2011 Cédric Bonhomme - http://cedricbonhomme.org/ +# Copyright (C) 2010-2015 Cédric Bonhomme - https://www.cedricbonhomme.org # -# For more information : http://bitbucket.org/cedricbonhomme/stegano/ +# For more information : https://github.com/cedricbonhomme/Stegano # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/bin/steganalysis-parity b/bin/steganalysis-parity index 59f691f..d96bf9a 100644 --- a/bin/steganalysis-parity +++ b/bin/steganalysis-parity @@ -2,9 +2,9 @@ #-*- coding: utf-8 -*- # Stéganô - Stéganô is a basic Python Steganography module. -# Copyright (C) 2010-2011 Cédric Bonhomme - http://cedricbonhomme.org/ +# Copyright (C) 2010-2015 Cédric Bonhomme - https://www.cedricbonhomme.org # -# For more information : http://bitbucket.org/cedricbonhomme/stegano/ +# For more information : https://github.com/cedricbonhomme/Stegano # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/stegano/basic.py b/stegano/basic.py index 3e16916..5205468 100755 --- a/stegano/basic.py +++ b/stegano/basic.py @@ -2,9 +2,9 @@ # -*- coding: utf-8 -*- # Stéganô - Stéganô is a basic Python Steganography module. -# Copyright (C) 2010-2013 Cédric Bonhomme - http://cedricbonhomme.org/ +# Copyright (C) 2010-2015 Cédric Bonhomme - https://www.cedricbonhomme.org # -# For more information : http://bitbucket.org/cedricbonhomme/stegano/ +# For more information : https://github.com/cedricbonhomme/Stegano # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/stegano/exifHeader.py b/stegano/exifHeader.py index ec5af24..6d61d49 100644 --- a/stegano/exifHeader.py +++ b/stegano/exifHeader.py @@ -2,9 +2,9 @@ #-*- coding: utf-8 -*- # Stéganô - Stéganô is a basic Python Steganography module. -# Copyright (C) 2010-2013 Cédric Bonhomme - http://cedricbonhomme.org/ +# Copyright (C) 2010-2015 Cédric Bonhomme - https://www.cedricbonhomme.org # -# For more information : http://bitbucket.org/cedricbonhomme/stegano/ +# For more information : https://github.com/cedricbonhomme/Stegano # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -115,4 +115,4 @@ if __name__ == "__main__": secret_file=options.secret_file) elif options.reveal: - reveal(img=options.input_image_file) \ No newline at end of file + reveal(img=options.input_image_file) diff --git a/stegano/generators.py b/stegano/generators.py index 25a3cc4..eef9907 100644 --- a/stegano/generators.py +++ b/stegano/generators.py @@ -2,9 +2,9 @@ # -*- coding: utf-8 -*- # Stéganô - Stéganô is a basic Python Steganography module. -# Copyright (C) 2010-2013 Cédric Bonhomme - http://cedricbonhomme.org/ +# Copyright (C) 2010-2015 Cédric Bonhomme - https://www.cedricbonhomme.org # -# For more information : http://bitbucket.org/cedricbonhomme/stegano/ +# For more information : https://github.com/cedricbonhomme/Stegano # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -42,7 +42,7 @@ def Dead_Man_Walking(): while True: yield n + 7 n += 2 - + def OEIS_A000217(): """ http://oeis.org/A000217 @@ -147,7 +147,7 @@ def log_gen(): adder = max(1, math.pow(10, int(math.log10(y)))) yield int(y) y = y + adder - + if __name__ == "__main__": # Point of entry in execution mode. f = fibonacci() diff --git a/stegano/slsb.py b/stegano/slsb.py index 4073e3f..4a63b45 100755 --- a/stegano/slsb.py +++ b/stegano/slsb.py @@ -2,9 +2,9 @@ #-*- coding: utf-8 -*- # Stéganô - Stéganô is a basic Python Steganography module. -# Copyright (C) 2010-2011 Cédric Bonhomme - http://cedricbonhomme.org/ +# Copyright (C) 2010-2015 Cédric Bonhomme - https://www.cedricbonhomme.org # -# For more information : http://bitbucket.org/cedricbonhomme/stegano/ +# For more information : https://github.com/cedricbonhomme/Stegano # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/stegano/slsbset.py b/stegano/slsbset.py index 9788100..848172f 100644 --- a/stegano/slsbset.py +++ b/stegano/slsbset.py @@ -2,9 +2,9 @@ #-*- coding: utf-8 -*- # Stéganô - Stéganô is a basic Python Steganography module. -# Copyright (C) 2010-2013 Cédric Bonhomme - http://cedricbonhomme.org/ +# Copyright (C) 2010-2015 Cédric Bonhomme - https://www.cedricbonhomme.org # -# For more information : http://bitbucket.org/cedricbonhomme/stegano/ +# For more information : https://github.com/cedricbonhomme/Stegano # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/stegano/steganalysisParity.py b/stegano/steganalysisParity.py index 3dc858e..4864778 100644 --- a/stegano/steganalysisParity.py +++ b/stegano/steganalysisParity.py @@ -2,9 +2,9 @@ #-*- coding: utf-8 -*- # Stéganô - Stéganô is a basic Python Steganography module. -# Copyright (C) 2010-2013 Cédric Bonhomme - http://cedricbonhomme.org/ +# Copyright (C) 2010-2015 Cédric Bonhomme - https://www.cedricbonhomme.org # -# For more information : http://bitbucket.org/cedricbonhomme/stegano/ +# For more information : https://github.com/cedricbonhomme/Stegano # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -62,7 +62,7 @@ if __name__ == '__main__': parser.set_defaults(input_image_file = './pictures/Lenna.png', output_image_file = './pictures/Lenna_steganalysed.png') (options, args) = parser.parse_args() - + input_image_file = Image.open(options.input_image_file) output_image = steganalyse(input_image_file) - output_image.save(options.output_image_file) \ No newline at end of file + output_image.save(options.output_image_file) diff --git a/stegano/steganalysisStatistics.py b/stegano/steganalysisStatistics.py index acc4359..cd3ce19 100644 --- a/stegano/steganalysisStatistics.py +++ b/stegano/steganalysisStatistics.py @@ -2,9 +2,9 @@ #-*- coding: utf-8 -*- # Stéganô - Stéganô is a basic Python Steganography module. -# Copyright (C) 2010-2013 Cédric Bonhomme - http://cedricbonhomme.org/ +# Copyright (C) 2010-2015 Cédric Bonhomme - https://www.cedricbonhomme.org # -# For more information : http://bitbucket.org/cedricbonhomme/stegano/ +# For more information : https://github.com/cedricbonhomme/Stegano # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -67,4 +67,4 @@ if __name__ == '__main__': input_image_file = Image.open(options.input_image_file) output_image = steganalyse(input_image_file) - soutput_image.save(options.output_image_file) \ No newline at end of file + soutput_image.save(options.output_image_file) diff --git a/stegano/tools.py b/stegano/tools.py index c43843a..60ba4fd 100755 --- a/stegano/tools.py +++ b/stegano/tools.py @@ -2,9 +2,9 @@ # -*- coding: utf-8 -*- # Stéganô - Stéganô is a basic Python Steganography module. -# Copyright (C) 2010-2013 Cédric Bonhomme - http://cedricbonhomme.org/ +# Copyright (C) 2010-2015 Cédric Bonhomme - https://www.cedricbonhomme.org # -# For more information : http://bitbucket.org/cedricbonhomme/stegano/ +# For more information : https://github.com/cedricbonhomme/Stegano # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -93,7 +93,7 @@ def binary2base64(binary_file): # Encode binary to base64 string (printable) return base64.b64encode(binary_data) - + """fout = open(output_file, "w") fout.write(b64_data) fout.close""" @@ -107,4 +107,4 @@ def base642binary(b64_fname): #b64_str = fin.read() #fin.close() # Decode base64 string to original binary sound object - return base64.b64decode(b64_fname) \ No newline at end of file + return base64.b64decode(b64_fname)