mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 17:18:30 +02:00
Updated Python headers files. Added .gitignore.
This commit is contained in:
parent
173d65f8aa
commit
979c6277b0
13 changed files with 58 additions and 31 deletions
27
.gitignore
vendored
Normal file
27
.gitignore
vendored
Normal 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
|
|
@ -6,6 +6,6 @@ recursive-include bin *
|
|||
|
||||
#Misc
|
||||
include COPYING
|
||||
include README.md
|
||||
include README.rst
|
||||
include CHANGELOG.md
|
||||
include requirements.txt
|
||||
|
|
4
bin/slsb
4
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
reveal(img=options.input_image_file)
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
output_image.save(options.output_image_file)
|
||||
|
|
|
@ -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)
|
||||
soutput_image.save(options.output_image_file)
|
||||
|
|
|
@ -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)
|
||||
return base64.b64decode(b64_fname)
|
||||
|
|
Loading…
Add table
Reference in a new issue