Skip to content

Instantly share code, notes, and snippets.

@jjhesk
Created May 20, 2024 09:38
Show Gist options
  • Save jjhesk/9dd95d323a3642fdeb87e885843299b4 to your computer and use it in GitHub Desktop.
Save jjhesk/9dd95d323a3642fdeb87e885843299b4 to your computer and use it in GitHub Desktop.
the key thing to start in here
import hashlib
tp = tE['apiHost']
ts = 'your_timestamp'
tu = 'your_client_key'
tr = 'your_full_request_path'
ty = tr.replace(tp, '').split('?')[0]
tv = hashlib.sha256(f"{ty}:{ts}:{tu}".encode()).hexdigest()
t_ = hashlib.sha256(f"{tu}:{tv}".encode()).hexdigest()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment