mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-06-28 03:06:14 +02:00
Fixed #12. More tests to come.
This commit is contained in:
parent
091f33c521
commit
7a5c23ef2f
3 changed files with 6 additions and 15 deletions
7
bin/lsb
7
bin/lsb
|
@ -81,13 +81,6 @@ if arguments.command == 'hide':
|
|||
elif arguments.command == 'reveal':
|
||||
secret = lsb.reveal(arguments.input_image_file)
|
||||
if arguments.secret_binary != None:
|
||||
"""data = tools.base642binary(secret)
|
||||
from PIL import Image
|
||||
import io
|
||||
file_like = io.BytesIO(data)
|
||||
file_like.seek(0)
|
||||
image = Image.open(file_like)
|
||||
image.save(arguments.secret_binary)"""
|
||||
data = tools.base642binary(secret)
|
||||
with open(arguments.secret_binary, "wb") as f:
|
||||
f.write(data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue