![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
Go to the source code of this file.
Namespaces | |
rpcuser | |
Variables | |
rpcuser.username = sys.argv[1] | |
rpcuser.cryptogen = SystemRandom() | |
list | rpcuser.salt_sequence = [cryptogen.randrange(256) for i in range(16)] |
rpcuser.hexseq = list(map(hex, salt_sequence)) | |
string | rpcuser.salt = "".join([x[2:] for x in hexseq]) |
rpcuser.password = base64.urlsafe_b64encode(os.urandom(32)) | |
rpcuser.digestmod = hashlib.sha256 | |
rpcuser.m = hmac.new(bytearray(salt, 'utf-8'), bytearray(password, 'utf-8'), digestmod) | |
rpcuser.result = m.hexdigest() | |