mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-06-28 03:06:14 +02:00
chg: [core ] various minor fixes.
This commit is contained in:
parent
b64d039389
commit
4aac55ec77
4 changed files with 5 additions and 8 deletions
|
@ -37,13 +37,13 @@ def hide(
|
|||
from zlib import compress
|
||||
from base64 import b64encode
|
||||
|
||||
if secret_file != None:
|
||||
if secret_file is not None:
|
||||
with open(secret_file, "r") as f:
|
||||
secret_message = f.read()
|
||||
|
||||
try:
|
||||
text = compress(b64encode(bytes(secret_message, "utf-8")))
|
||||
except:
|
||||
except Exception:
|
||||
text = compress(b64encode(secret_message))
|
||||
|
||||
img = tools.open_image(input_image_file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue