mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 15:32:34 +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)
|
password_hmac = password_to_hmac(salt, args.password)
|
||||||
|
|
||||||
if args.output:
|
if args.output:
|
||||||
file = open(args.output, "x")
|
file = open(args.output, "x", encoding="utf8")
|
||||||
file.write(f'{args.username}:{salt}${password_hmac}')
|
file.write(f'{args.username}:{salt}${password_hmac}')
|
||||||
print(f'Your password:\n{args.password}')
|
print(f'Your password:\n{args.password}')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user