This commit is contained in:
SG
2023-05-08 19:03:16 +02:00
parent 99e9996a55
commit 71307f3bc7

View File

@@ -110,7 +110,6 @@ async def main():
role = 'receive'
password = args.password
if args.send and args.password is None:
#password = xp.generate_xkcdpassword(wordlist, numwords=4, delimiter = "-", case='capitalize')
password = diceware.generate_passphrase(4)
passwd_part = f"--password {password}"
if args.receive and args.password is None:
@@ -187,7 +186,7 @@ async def main():
await send_encrypted_msg(ws, k, (msgtype, peer_group_id, role, "", "", "", "", "")) # request the next chunk from sender
i += 1
bar.next()
if i > msg["number_of_chunks"]:
if i > msg["number_of_chunks"] + 1:
bar.index = 100
bar.suffix = '%(percent).1f%% complete'
bar.update()