Guest User

Untitled

a guest
Dec 16th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. def createSignature(clientId, apiKey, privateKey, nonce):
  2. message = str(nonce) + str(clientId) + apiKey
  3. signature = hmac.new(privateKey, message, digestmod=hashlib.sha256).hexdigest()
  4.  
  5. function createSignature($id, $pk, $sk, $nonce){
  6. $message = $nonce . $id . $pk;
  7. $signature = hash_hmac('sha256', $message, $sk, false);
  8. }
Add Comment
Please, Sign In to add comment