mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 17:18:30 +02:00
Minor bugfix.
This commit is contained in:
parent
12497ce88d
commit
2f34fac27c
2 changed files with 5 additions and 5 deletions
2
lsb-s.py
2
lsb-s.py
|
@ -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)
|
||||
|
|
2
tools.py
2
tools.py
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue