mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-06-27 19:06:12 +02:00
fix: [console] Fixed parameter name when calling wav.reveal().
This commit is contained in:
parent
5b75db7dab
commit
6fd80429a4
1 changed files with 3 additions and 3 deletions
|
@ -32,6 +32,7 @@ import argparse
|
||||||
|
|
||||||
from stegano import tools
|
from stegano import tools
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(prog="stegano-lsb")
|
parser = argparse.ArgumentParser(prog="stegano-lsb")
|
||||||
subparsers = parser.add_subparsers(
|
subparsers = parser.add_subparsers(
|
||||||
|
@ -108,14 +109,13 @@ def main():
|
||||||
input_file=arguments.input_audio_file,
|
input_file=arguments.input_audio_file,
|
||||||
message=secret,
|
message=secret,
|
||||||
encoding=arguments.encoding,
|
encoding=arguments.encoding,
|
||||||
output_file=arguments.output_audio_file
|
output_file=arguments.output_audio_file,
|
||||||
)
|
)
|
||||||
|
|
||||||
elif arguments.command == "reveal":
|
elif arguments.command == "reveal":
|
||||||
try:
|
try:
|
||||||
secret = wav.reveal(
|
secret = wav.reveal(
|
||||||
encoded_wav=arguments.input_audio_file,
|
input_file=arguments.input_audio_file, encoding=arguments.encoding
|
||||||
encoding=arguments.encoding
|
|
||||||
)
|
)
|
||||||
except IndexError:
|
except IndexError:
|
||||||
print("Impossible to detect message.")
|
print("Impossible to detect message.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue