mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-06-28 03:06:14 +02:00
chg: [style] Reformated with black.
This commit is contained in:
parent
891051f77b
commit
a1213a9163
13 changed files with 275 additions and 184 deletions
|
@ -30,10 +30,13 @@ from stegano import tools
|
|||
|
||||
|
||||
def hide(
|
||||
input_image_file, img_enc, secret_message=None, secret_file=None, img_format=None,
|
||||
input_image_file,
|
||||
img_enc,
|
||||
secret_message=None,
|
||||
secret_file=None,
|
||||
img_format=None,
|
||||
):
|
||||
"""Hide a message (string) in an image.
|
||||
"""
|
||||
"""Hide a message (string) in an image."""
|
||||
from zlib import compress
|
||||
from base64 import b64encode
|
||||
|
||||
|
@ -64,8 +67,7 @@ def hide(
|
|||
|
||||
|
||||
def reveal(input_image_file):
|
||||
"""Find a message in an image.
|
||||
"""
|
||||
"""Find a message in an image."""
|
||||
from base64 import b64decode
|
||||
from zlib import decompress
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue