Created
May 20, 2024 09:38
-
-
Save jjhesk/9dd95d323a3642fdeb87e885843299b4 to your computer and use it in GitHub Desktop.
the key thing to start in here
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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