From b3bceeb79594631a25736d54f589d35629525c0a Mon Sep 17 00:00:00 2001 From: Anton Kasimov Date: Tue, 11 Jan 2022 17:29:34 +0300 Subject: [PATCH] Printing hashing parameters to stdout --- userhash.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/userhash.py b/userhash.py index f2c4f26..26bde76 100644 --- a/userhash.py +++ b/userhash.py @@ -82,13 +82,11 @@ if len(args.salt) < MIN_SALT_LENGTH: with args.infile: with args.outfile: - args.outfile.write( - ' '.join(( - base64.b64encode(args.salt).decode('ascii'), - str(args.n), - str(args.r), - str(args.p), - )) + '\n', + print( + base64.b64encode(args.salt).decode('ascii'), + str(args.n), + str(args.r), + str(args.p), ) for row in args.infile: args.outfile.write(