Printing hashing parameters to stdout
parent
270cc5c839
commit
b3bceeb795
12
userhash.py
12
userhash.py
|
@ -82,13 +82,11 @@ if len(args.salt) < MIN_SALT_LENGTH:
|
||||||
|
|
||||||
with args.infile:
|
with args.infile:
|
||||||
with args.outfile:
|
with args.outfile:
|
||||||
args.outfile.write(
|
print(
|
||||||
' '.join((
|
base64.b64encode(args.salt).decode('ascii'),
|
||||||
base64.b64encode(args.salt).decode('ascii'),
|
str(args.n),
|
||||||
str(args.n),
|
str(args.r),
|
||||||
str(args.r),
|
str(args.p),
|
||||||
str(args.p),
|
|
||||||
)) + '\n',
|
|
||||||
)
|
)
|
||||||
for row in args.infile:
|
for row in args.infile:
|
||||||
args.outfile.write(
|
args.outfile.write(
|
||||||
|
|
Loading…
Reference in New Issue