aboutsummaryrefslogtreecommitdiff
path: root/share/rpcauth
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-04-16 11:13:07 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-04-16 17:25:11 +0200
commitf020aca297e8a6c9f7b6a6e08e583847d37edace (patch)
treeb7573c8faefcf5c92d21f1bd297fc72a8da3393f /share/rpcauth
parent0d6992168c2bda85b18fda8f6dea08da433a0dc9 (diff)
downloadbitcoin-f020aca297e8a6c9f7b6a6e08e583847d37edace.tar.xz
Minor Python cleanups to make flake8 pass with the new rules enabled
Diffstat (limited to 'share/rpcauth')
-rwxr-xr-xshare/rpcauth/rpcauth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/rpcauth/rpcauth.py b/share/rpcauth/rpcauth.py
index 10cf516732..f9b9787514 100755
--- a/share/rpcauth/rpcauth.py
+++ b/share/rpcauth/rpcauth.py
@@ -25,7 +25,7 @@ salt = "".join([x[2:] for x in hexseq])
#Create 32 byte b64 password
password = base64.urlsafe_b64encode(os.urandom(32)).decode("utf-8")
-
+
m = hmac.new(bytearray(salt, 'utf-8'), bytearray(password, 'utf-8'), "SHA256")
result = m.hexdigest()