Questions tagged [hmacsha256]

42 questions
0
votes
0 answers

How to do hashing Hmac-SHA256 in React Native?

for node.js I can use crypto to do the hashing, is there any way to do that in react native, because I tried to do it with the react-native-crypto-js does not work. hope anyone can help. I try to use the node.js crypto which is does not work for the…
Vyron
  • 1
0
votes
1 answer

NetSuite using signedrequest4j OAuth 1.0 Access denied 401

I'm trying to consume services from NetSuite via signedrequest4j. The only result im getting is 401 Access denied, using the same credentials with Postman it works. this the method to get the authorisation header : public String…
ElyMan
  • 45
  • 8
0
votes
0 answers

Is HMAC-SHA256 one way hashing or can I un hash the actual value

New to HMAC, trying to find out is HMAC is one way hashing or can I un hash the value back to it's original, bcz I see the key is using while calculating the hash.
user2108383
  • 239
  • 1
  • 9
  • 22
0
votes
1 answer

The value of hash_hmac sha256 has different value using different post procedures

I made two ways of requesting a POST. Method 1 is submitting the form to the server. Method 2 is using Jquery $.post.
0
votes
2 answers

HMACSHA265 output difference between CryptoJS and Python

I have a working CryptoJS signing that I need to translate to Python in order to run it in our testcases. The problem is that when I input the same parameter values and use the same algorithm it returns different resulting signing hashes in Python…
Obsidian
  • 1
  • 1
0
votes
0 answers

Getting a different value from a Hmac-sha256 online generator tool and Java Code

I would like to generate a signature from my Java code, this is my method: public static String hmacWithJava(String algorithm, String data, String key) throws NoSuchAlgorithmException, InvalidKeyException { Mac mac =…
rasilvap
  • 1,771
  • 3
  • 31
  • 70
0
votes
1 answer

How to get same base64 hmac in java as in nodejs code?

I am trying to create a base64 hmac for sha256. I have two codes for the same, one in JS and other in Java,though I am doing it in android and a kotlin one will help me as well. I have mostly used codes from other SO answers only. The one in node js…
Pritish
  • 1,284
  • 1
  • 19
  • 42
0
votes
0 answers

How to port my code from CryptoJS to python3?

The code is already written in javascript but i have to port it to python. I tried, but not getting the expected results. Can someone help me port this code into Python. Javascript Script const timestamp = new Date().toISOString(); const accessKey…
Purna Mahesh
  • 93
  • 1
  • 7
0
votes
0 answers

intermediate sha256 computation on HMAC, observing wrong hash value

I am trying to run do a step by step implementation of HMAC using sha256 based on the https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/HMAC_SHA256.pdf. I am observing wrong hash value in the…
user2532296
  • 828
  • 1
  • 10
  • 27
0
votes
1 answer

Problem with recreating python b64encode and hmac function in C#

I have to create a function that generates exactly the same signature as it does in python. Here is my code if __name__ == '__main__': client_secret = 'aasfeef422c2dsa84fe9e7f56e6f214b' client_key_id = 'PHFg6w5XwnIYasDvdkqSjA==' nonce =…
pewocis495
  • 117
  • 1
  • 11
0
votes
2 answers

Java code for verification of FusionAuth HS256 signed id token

How to verify HS256 ID Token using FusionAuth java Client libraries ? Description: I have created an app in FusionAuth that has a Client ID and Client Secret generated, I have not touched any other section/tab like JWT etc, default JWT signing algo…
1 2
3