diff options
author | Zero-1729 <zero1729@protonmail.com> | 2021-08-16 19:30:44 +0100 |
---|---|---|
committer | Zero-1729 <zero1729@protonmail.com> | 2021-08-16 19:30:56 +0100 |
commit | 021daedfa100defad553d69cd3d628aaa5bc7caf (patch) | |
tree | aea7f9c78aa5e73073d26bfff3e2357986a8e056 /share | |
parent | f4328ebef52f51a5ee45cc42815c91ccd28b0669 (diff) |
refactor: replace remaining binascii method calls
Diffstat (limited to 'share')
-rwxr-xr-x | share/rpcauth/rpcauth.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/share/rpcauth/rpcauth.py b/share/rpcauth/rpcauth.py index b14c80171e..c6d9b652b8 100755 --- a/share/rpcauth/rpcauth.py +++ b/share/rpcauth/rpcauth.py @@ -5,7 +5,6 @@ from argparse import ArgumentParser from base64 import urlsafe_b64encode -from binascii import hexlify from getpass import getpass from os import urandom @@ -13,7 +12,7 @@ import hmac def generate_salt(size): """Create size byte hex salt""" - return hexlify(urandom(size)).decode() + return urandom(size).hex() def generate_password(): """Create 32 byte b64 password""" |