Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     this.makeSignature = function(method, path, nonce, params)
  2.     {
  3.         path = path.substring(1);
  4.         method = method.toUpperCase();
  5.         var msgString = method + ";" + path + ";" + this.accessKey + ";"+nonce+";PARAMS:";
  6.         var signature = encodeURI(btoa(CryptoJS.HmacSHA256(this.secretKey, msgString)));
  7.         console.log("sygnatura stworzpona: " + signature + " a nonce to " + nonce);
  8.         return signature;
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement