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

View 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)