Bugfix: rpcauth: Specify encoding for output file

This commit is contained in:
Luke Dashjr 2020-11-25 15:05:58 +00:00
parent 6d69a2974b
commit aa1813d92b

View File

@ -37,7 +37,7 @@ def main():
password_hmac = password_to_hmac(salt, args.password)
if args.output:
file = open(args.output, "x")
file = open(args.output, "x", encoding="utf8")
file.write(f'{args.username}:{salt}${password_hmac}')
print(f'Your password:\n{args.password}')
else: