mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-28 13:02:38 +02:00
Bugfix: rpcauth: Specify encoding for output file
This commit is contained in:
parent
6d69a2974b
commit
aa1813d92b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user