Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nonce = str(int(time.time())*1000)
- FirstHEX = hashlib.sha256()
- FirstHEX.update(bytes(walletID + password, 'utf-8'))
- SecondHEX = hashlib.sha256()
- SecondHEX.update(bytes(FirstHEX.hexdigest(), 'utf-8'))
- key = Second.hexdigest()
- msg = walletID + nonce
- key = bytes(key, 'utf-8')
- msg = bytes(msg, 'utf-8')
- Signature = hmac.new(key, msg, digestmod=sha1).hexdigest()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement