Merge pull request #3186 from jimjimmiejames/patch-1

Update rpcuser.py
This commit is contained in:
chromatic 2023-01-08 13:05:38 -08:00 committed by GitHub
commit 93f989df7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
# Copyright (c) 2015-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
@ -36,6 +36,6 @@ if sys.version_info.major >= 3:
m = hmac.new(bytearray(salt, 'utf-8'), bytearray(password, 'utf-8'), digestmod)
result = m.hexdigest()
print("String to be appended to bitcoin.conf:")
print("String to be appended to dogecoin.conf")
print("rpcauth="+username+":"+salt+"$"+result)
print("Your password:\n"+password)