mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-06-28 11:16: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
|
@ -98,8 +98,7 @@ def hide(
|
|||
|
||||
|
||||
def reveal(input_image: Union[str, IO[bytes]], encoding: str = "UTF-8", shift: int = 0):
|
||||
"""Find a message in an image (with the LSB technique).
|
||||
"""
|
||||
"""Find a message in an image (with the LSB technique)."""
|
||||
img = tools.open_image(input_image)
|
||||
width, height = img.size
|
||||
buff, count = 0, 0
|
||||
|
@ -128,4 +127,4 @@ def reveal(input_image: Union[str, IO[bytes]], encoding: str = "UTF-8", shift: i
|
|||
|
||||
if len(bitab) - len(str(limit)) - 1 == limit:
|
||||
img.close()
|
||||
return "".join(bitab)[len(str(limit)) + 1:]
|
||||
return "".join(bitab)[len(str(limit)) + 1 :]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue