Questions tagged [hmacsha256]
42 questions
2
votes
1 answer
Generate AWS Signature in MarkLogic XQuery - can't reproduce example hash
I need to send a GET request to AWS from MarkLogic and sign the URL. I was using the AWS documentation to understand how the signature gets created but what I get and what I expect to get aren't the same.
Sample data is from this page.
let…

maifosz
- 55
- 6
2
votes
1 answer
Webhook Signature not matching (Nodejs)
I am trying to calculate the webhook signature coming Zum rails API with mine using HMAC with sha256 algorithm and base64, the payload is JSON stringify, and utf8. string, unfortunately for me, the signature doesn't match my calculation every time.…

Gabriel Temitope
- 53
- 5
2
votes
0 answers
HMACSHA256 causes AccessViolationException when reused parallelly
Why there is nowhere written that HMACSHA256 can cause System.AccessViolationException when accessed parallelly? The AccessViolationException is super hard to investigate since it cannot be caught by regular try-catch (from .Net 6.0 it cannot be…

frakon
- 1,948
- 2
- 22
- 26
2
votes
1 answer
analog in PHP [echo "symbol=LTC%2FBTC&side=BUY" | openssl dgst -sha256 -hmac "SECRETKEY" ]
I write code for send webhook in Currensy-Rest-api:
https://currency.com/ru/general-rest-api-information
for this i need to form signature HMAC sha256, in example of currensy i have
[echo "symbol=LTC%2FBTC&side=BUY" | openssl dgst -sha256…

ihar_makh
- 41
- 3
2
votes
0 answers
Hash mismatch when unicode value is present
While calling from one module to another I am facing hash mismatch issue. Hash is first generated in caller module using request parameters and sent to called module in Request Header. Called module then generates hash from request and validates if…

Sanish Maharjan
- 93
- 11
2
votes
3 answers
How to validate a Huawei X-HW-SIGNATURE?
How can I validate a X-HW-SIGNATURE in PHP?
The documentation for request parameters reads:
Message header signature, which is mandatory, indicating the
signature information sent to your server that receives uplink messages.
There's also example…

Martin Zeitler
- 1
- 19
- 155
- 216
1
vote
2 answers
Words breaking into stange symbols in decrypted text when performing authenticated encryption/decrpytion using OpenSSL
I am working on using OpenSSL in Linux Ubuntu to perform authenticated encryption/decryption. I am currently using C for the code, AES-CTR Encryption method for ciphering the text, HMAC-SHA256 for the tag. My code works by using Makefile for command…

Hysperion
- 21
- 5
1
vote
0 answers
Is it possible to parse the hmac_sha256 signature returned by the server
Made a client, initiated a consumption transaction, and signed the data to be sent with hmac_sha256. Whether the signature returned by the server can be parsed
I signed the data with hmac_sha256 and posted it to the server. It was successful and I…

Chinese cabbage
- 11
- 2
1
vote
0 answers
why is php generating different hmac-sha256 compared to online generators?
I am using below php code to generate hmac-sha256 and encode it to base64
$data ="sdkfhglkjfdsglfdslkgjdfl;kjsdflk;jsdlgldgweprepoifepiorgi";
$secret = "da851675-c797-4edd-b492-af1c0753e5c0";
$hash = hash_hmac('sha256', $data, $secret);
$base64 =…

Gan3i
- 95
- 11
1
vote
0 answers
How to create a signature for bingx api in node js
I want to generate a signature for Bingx website Api
Here's my code:
const Base64 = require('crypto-js/enc-base64');
const hmacSHA256 = require('crypto-js/hmac-sha256');
let originString = 'POST/api/v1/user/getBalanceapiKey=my_api_key' +…

developer
- 170
- 2
- 12
1
vote
1 answer
How can I generate JWT token using HMAC? How is the signature created?
I went to this website https://jwt.io/#debugger-io
Here I took the given sample info and passed it to my code.
But the encoded information that I got is not matching what is given on the website.
Since I am doing something wrong here, I am not able…

Pragyan
- 349
- 2
- 14
1
vote
1 answer
Send an encrypted request to APi in Dart
I am trying to send an encrypted request to a specific API in dart, but without success - I don't have any experience with the Dart language.
This are the requirements:
The JSON to be sent is encrypted as follows: "AES/CBC/ZeroBytePadding", IV is…

ddd
- 63
- 1
- 9
1
vote
1 answer
HMAC Validation in SpringBoot failing due to rearrangement of JSON
I am trying to have HMAC in springBoot for REST API.
The request I send from Postman is
{
"name":"xyz",
"description":"hello world",
"phone":"123456",
"id":"1"
}
it reached my controller and then to the service where I have a…

vaibhav panchal
- 21
- 2
1
vote
0 answers
Create hmacHash with stream result differs for requests with formatted json
I want to regenerate a token to verify the request using hmacHash
The resource documentation is in javascript and I have to implement it in C#.
here what I found in their documentation on generating the token.
routes.post("/webhook", (request) => {
…

Dimuth Ruwantha
- 671
- 2
- 12
- 26
1
vote
2 answers
Authenticating FTX API SHA256 HMAC with Node
I am lost with using HMAC SHA256 for api authentication. This is my first time using it and I'm not sure what I am missing although I suspect it has to do with the timestamp. Can someone please help me identify what it is I am missing?
Everytime I…

Bobby Grant Jr
- 35
- 6