Minor bugfix in the binary.

This commit is contained in:
cedricbonhomme 2011-12-29 09:38:11 +01:00
parent a0aec974c5
commit 7d8670e72c

View file

@ -72,7 +72,7 @@ if options.hide:
elif options.secret_message == "" and options.secret_file != "": elif options.secret_message == "" and options.secret_file != "":
secret = tools.binary2base64(options.secret_file) secret = tools.binary2base64(options.secret_file)
img_encoded = hide(options.input_image_file, secret, options.generator_function) img_encoded = slsbset.hide(options.input_image_file, secret, options.generator_function)
try: try:
img_encoded.save(options.output_image_file) img_encoded.save(options.output_image_file)
except Exception, e: except Exception, e:
@ -81,7 +81,7 @@ if options.hide:
elif options.reveal: elif options.reveal:
try: try:
secret = reveal(options.input_image_file, options.generator_function) secret = slsbset.reveal(options.input_image_file, options.generator_function)
except IndexError: except IndexError:
print "Impossible to detect message." print "Impossible to detect message."
exit(0) exit(0)