Printing hashing parameters to stdout

master
Антон Касимов 2022-01-11 17:29:34 +03:00
parent 270cc5c839
commit b3bceeb795
Signed by: toxa
GPG Key ID: CC3C1E3EA2534D0C
1 changed files with 5 additions and 7 deletions

View File

@ -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(