Updated Python headers files. Added .gitignore.

This commit is contained in:
Cédric Bonhomme 2015-12-23 21:33:05 +01:00
parent 173d65f8aa
commit 979c6277b0
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D
13 changed files with 58 additions and 31 deletions

27
.gitignore vendored Normal file
View file

@ -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

View file

@ -6,6 +6,6 @@ recursive-include bin *
#Misc #Misc
include COPYING include COPYING
include README.md include README.rst
include CHANGELOG.md include CHANGELOG.md
include requirements.txt include requirements.txt

View file

@ -2,9 +2,9 @@
#-*- coding: utf-8 -*- #-*- coding: utf-8 -*-
# Stéganô - Stéganô is a basic Python Steganography module. # 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 # 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 # it under the terms of the GNU General Public License as published by

View file

@ -2,9 +2,9 @@
#-*- coding: utf-8 -*- #-*- coding: utf-8 -*-
# Stéganô - Stéganô is a basic Python Steganography module. # 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 # 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 # it under the terms of the GNU General Public License as published by

View file

@ -2,9 +2,9 @@
#-*- coding: utf-8 -*- #-*- coding: utf-8 -*-
# Stéganô - Stéganô is a basic Python Steganography module. # 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 # 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 # it under the terms of the GNU General Public License as published by

View file

@ -2,9 +2,9 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Stéganô - Stéganô is a basic Python Steganography module. # 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 # 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 # it under the terms of the GNU General Public License as published by

View file

@ -2,9 +2,9 @@
#-*- coding: utf-8 -*- #-*- coding: utf-8 -*-
# Stéganô - Stéganô is a basic Python Steganography module. # 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 # 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 # 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) secret_file=options.secret_file)
elif options.reveal: elif options.reveal:
reveal(img=options.input_image_file) reveal(img=options.input_image_file)

View file

@ -2,9 +2,9 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Stéganô - Stéganô is a basic Python Steganography module. # 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 # 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 # it under the terms of the GNU General Public License as published by
@ -42,7 +42,7 @@ def Dead_Man_Walking():
while True: while True:
yield n + 7 yield n + 7
n += 2 n += 2
def OEIS_A000217(): def OEIS_A000217():
""" """
http://oeis.org/A000217 http://oeis.org/A000217
@ -147,7 +147,7 @@ def log_gen():
adder = max(1, math.pow(10, int(math.log10(y)))) adder = max(1, math.pow(10, int(math.log10(y))))
yield int(y) yield int(y)
y = y + adder y = y + adder
if __name__ == "__main__": if __name__ == "__main__":
# Point of entry in execution mode. # Point of entry in execution mode.
f = fibonacci() f = fibonacci()

View file

@ -2,9 +2,9 @@
#-*- coding: utf-8 -*- #-*- coding: utf-8 -*-
# Stéganô - Stéganô is a basic Python Steganography module. # 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 # 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 # it under the terms of the GNU General Public License as published by

View file

@ -2,9 +2,9 @@
#-*- coding: utf-8 -*- #-*- coding: utf-8 -*-
# Stéganô - Stéganô is a basic Python Steganography module. # 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 # 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 # it under the terms of the GNU General Public License as published by

View file

@ -2,9 +2,9 @@
#-*- coding: utf-8 -*- #-*- coding: utf-8 -*-
# Stéganô - Stéganô is a basic Python Steganography module. # 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 # 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 # 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', parser.set_defaults(input_image_file = './pictures/Lenna.png',
output_image_file = './pictures/Lenna_steganalysed.png') output_image_file = './pictures/Lenna_steganalysed.png')
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
input_image_file = Image.open(options.input_image_file) input_image_file = Image.open(options.input_image_file)
output_image = steganalyse(input_image_file) output_image = steganalyse(input_image_file)
output_image.save(options.output_image_file) output_image.save(options.output_image_file)

View file

@ -2,9 +2,9 @@
#-*- coding: utf-8 -*- #-*- coding: utf-8 -*-
# Stéganô - Stéganô is a basic Python Steganography module. # 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 # 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 # 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) input_image_file = Image.open(options.input_image_file)
output_image = steganalyse(input_image_file) output_image = steganalyse(input_image_file)
soutput_image.save(options.output_image_file) soutput_image.save(options.output_image_file)

View file

@ -2,9 +2,9 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Stéganô - Stéganô is a basic Python Steganography module. # 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 # 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 # 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) # Encode binary to base64 string (printable)
return base64.b64encode(binary_data) return base64.b64encode(binary_data)
"""fout = open(output_file, "w") """fout = open(output_file, "w")
fout.write(b64_data) fout.write(b64_data)
fout.close""" fout.close"""
@ -107,4 +107,4 @@ def base642binary(b64_fname):
#b64_str = fin.read() #b64_str = fin.read()
#fin.close() #fin.close()
# Decode base64 string to original binary sound object # Decode base64 string to original binary sound object
return base64.b64decode(b64_fname) return base64.b64decode(b64_fname)