Advertisement
Guest User

Untitled

a guest
Sep 6th, 2020
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. nonce = str(int(time.time())*1000)
  2.  
  3. FirstHEX = hashlib.sha256()
  4. FirstHEX.update(bytes(walletID + password, 'utf-8'))
  5. SecondHEX = hashlib.sha256()
  6. SecondHEX.update(bytes(FirstHEX.hexdigest(), 'utf-8'))
  7. key = Second.hexdigest()
  8.  
  9. msg = walletID + nonce
  10.  
  11. key = bytes(key, 'utf-8')
  12. msg = bytes(msg, 'utf-8')
  13. Signature = hmac.new(key, msg, digestmod=sha1).hexdigest()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement