Minor bugfix.

This commit is contained in:
cedricbonhomme 2010-10-06 08:48:30 +02:00
parent 12497ce88d
commit 2f34fac27c
2 changed files with 5 additions and 5 deletions

View file

@ -156,7 +156,7 @@ if __name__ == '__main__':
if sys.argv[1] == "hide":
if options.secret_message != "" and options.secret_file == "":
secret = options.secret_message
elif options.secret_message == "" and options.secret_file =! "":
elif options.secret_message == "" and options.secret_file != "":
secret = tools.binary2base64(options.secret_file)
img = Image.open(options.input_image_file)

View file

@ -89,7 +89,7 @@ def binary2base64(binary_file, output_file):
fin.close()
# Encode binary to base64 string (printable)
return b64_data = base64.b64encode(binary_data)
return base64.b64encode(binary_data)
"""fout = open(output_file, "w")
fout.write(b64_data)