Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.makeSignature = function(method, path, nonce, params)
- {
- path = path.substring(1);
- method = method.toUpperCase();
- var msgString = method + ";" + path + ";" + this.accessKey + ";"+nonce+";PARAMS:";
- var signature = encodeURI(btoa(CryptoJS.HmacSHA256(this.secretKey, msgString)));
- console.log("sygnatura stworzpona: " + signature + " a nonce to " + nonce);
- return signature;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement