I am working with the keybase.io API - trying to drive it from javascript.  Logging in is a two step process.  The second step is detailed at https://keybase.io/docs/api/1.0/call/login.  I am stuck on the following;     The server and the client shar...
Can you anybody explain me a difference between creating HmacSha512 signature using Crypto module of Node.JS and Google Apps Script?  Code 1 - Node.JS  var secret = "my secret"; var message = "message"; var crypto = require("crypt...
My question is very similar to Translation from Python to JavaScript: HMAC-SHA256, however that question was never answered.  The following Python code produces the correct hash:  def sign_api_request(api_secret, api_key, method, url):     encoded_ur...
I'm handling an incoming Webhook from github, and wants to verify the x-hub-signature. I'm using hmacto hash the "secret", and then compares the two hashes. The problem is that they never match. This is my setup:  router.route("/a...
Can I use AWS Cognito IdentityID as HMAC key on SSL to protect my REST services?  I would like to secure and setup the following application.   A HTML/Javascript client using AWS Cognito (future plans to sync across clients) on an SSL Page A Spring B...
I wrote a Java program which generates HMAC SHA hash code, But due to some reason I have to write the same code in NodeJs/JavaScript. I tried googling around but did not get anything. In this Java code, I am passing URI and Key as arguments, to gener...
I'm trying to use nodejs' createHmac function from its crypto library.  Problem: It produces different hashes when given (seemingly) identical arguments. The only difference being whether the 'secret' parameter is a string variable, o...
I need to encrypt then base64 encode a string to authenticate with Twitter's OAuth 1.1 API.   The platform I'm designing for provides an HMAC function so that first part is fine. However, when I try to Base64 encode the result, it's encod...
I have to connect to an API using hash_hmac. In the PHP documentation for hash_hmac, the fourth parameter bool $raw_output controls whether the output is raw binary data (true) or lowercase hexits (false). My program works in PHP by simply setting th...
We've built a javascript module which can be embedded in third-party webpages.  When this client module is initialized, it executes a transaction within our web application via a cross-site request.  The transaction consists of an external uuid,...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.