Skip to content Skip to sidebar Skip to footer

Sign Key Hmac Sha1 With Javascript

For some reason I am not able to create a signature from a private key in JS. Using this online help from google: https://m4b-url-signer.appspot.com/ URL:https://google.maps.com/ma

Solution 1:

For the record, this worked:

<script src="sha.js"></script>

var url = '/maps/api/geocode/json?address=New+York&client=test';
var key = 'QNade5DtdJKKZbidTsrIgONupc4='var hmacObj = newjsSHA(url, 'TEXT');
var hmacOutput = hmacObj.getHMAC(key,'B64','SHA-1','B64');

console.log(hmacOutput)

Giving me:

XDsiH5JAY7kJLgA1K2PWlhTdO1k=

Post a Comment for "Sign Key Hmac Sha1 With Javascript"