Questions tagged [sha256]

sha256 stands for Secure Hash Algorithm-256. It is a hash function computed with 32-bit words. It was designed by the US National Security Agency (NSA). It is used to authenticate Debian GNU/Linux software packages, in the DKIM message signing standard and many other applications.

sha256 stands for Secure Hash Algorithm-256. It is a hash functions computed with 32-bit words. It is one of the function in SHA-2 library. SHA-2 is a set of cryptographic hash functions (SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, SHA-512/256) published in 2001 by the NIST as a U.S. Federal Information Processing Standard (FIPS).

It was designed by US National Security Agency (NSA). It is used to authenticate Debian GNU/Linux software packages, in the DKIM message signing standard and many other applications.

1952 questions
0
votes
2 answers

hmac hash not same in PHP and Go

I am trying to generate a hmac for API authentication, but the documentation is on Go, I need to convert it to php way, I need the result to be the same as Go result. On the Docs said: To build the string to sign, combine the HTTP method, request…
berusjamban
  • 323
  • 4
  • 12
0
votes
1 answer

using HASHBYTES function to hash data

I have data I need to hash. I have list of numbers to compare for hashed numbers. as far as someone could tell me, the data was hashed with SHA_256 I have only one example for input and output and I need to find out the hashing logic in SQL…
JumpIntoTheWater
  • 1,306
  • 2
  • 19
  • 46
0
votes
1 answer

Hash(SHA2 -256) a column in a Avro File(coming as a flowfile) in Apache Nifi

Avro files are coming from source as flowfiles in Apache Nifi and i want to fetch 'Password' column and hash it with 'SHA2-256' and give it as an output flowfile and finally put it in AWS s3.
0
votes
0 answers

Replication of HMACSHA256 in c# as that of jsSHA

so i am trying to get this hash 69F6617707D9442940C39BEBFA0B4459CEBF6CD5E610EA1FF44B341E291654A9 which can me made on https://caligatio.github.io/jsSHA/. The key is K = E74A540FA07C4DB1B46421126DF7AD36 , Message is T=…
0
votes
1 answer

What does CryptoJS.enc.Hex.parse(hash) do, and how to replicate it in Java?

Basically, I want to replicate the following javascript code in java: let h = calculateHmac(CryptoJS.enc.Hex.parse(hash), key); const calculateHmac = (seed, salt) => { const hmac = CryptoJS.HmacSHA256(seed, salt); return hmac; } Here's my…
0
votes
0 answers

Securely send data from iOS to Server

I am looking to send credit card information from my iOS app to my server. What is the best way to get this done securely? Information would include: Name, Credit Card Number, Expiration Date, and the CVV. Would a base64 string be good enough? or…
Phil
  • 1,077
  • 1
  • 11
  • 18
0
votes
1 answer

ValueError: not a valid sha256_crypt hash

I am working on this application and I have set up a registration and login page. Everything works perfectly fine, the only issue is with the password validation. I am using SHA256 and every time I try logging I get this error : ValueError: not a…
0
votes
1 answer

HMAC SHA-256 for a signed AWS request

EDIT: The issue is that I'm using hex encoded strings as the keys and I should be using raw bytes. How can I get the raw bytes out of the openssl command? --- Original question --- I'm attempting to follow the instructions for creating a signed iam…
gregghz
  • 3,925
  • 7
  • 40
  • 69
0
votes
0 answers

Same SHA256 MAC Result in Oracle PL/SQL and .Net

I'm trying to get the same hashing result between Oracle PL/SQL and .Net using SHA256 MAC with a key. However I'm getting different results. What do i need to modify? Here are the two functions: Considering inputs: Text="Testing12345" and…
ZiggY
  • 1
  • 1
0
votes
0 answers

InvalidOperationException was thrown

I have an API endpoint that has a "hash" key that is sent via the HTTPheader request. When then end point is hit I need to compare the hash key from the header to the hash key on my end point as follows public async Task
josh
  • 29
  • 5
0
votes
0 answers

Validating webhook with sha256 hmac using PHP and Python

I am working with webhooks from Bold Commerce, which are validated using a hash of the timestamp and the body of the webhook, with a secret key as the signing key. The headers from the webhook looks like this : X-Bold-Signature:…
0
votes
0 answers

Can we guess the first 2 characters of a HMAC-SHA256 hash if we know the messages, can see all outcomes but have no idea about the key?

My question is this: You are providing a message (i.e. helloworld:0) to someone with a key, who will take HMAC-SHA256 of the message and show you the output. He will never tell you what is the key, but always use the same key and will show you every…
Murat
  • 1
0
votes
0 answers

How to convert hex(base16) value of hash SHA-256 to Unsigned Integer(7) (base10) in Scala?

Logic which is working in Abinitio platform. Lets take sample value as “123456789”, for which we need to generate SHA256 and convert into unsigned integer(7). Expected result - 40876285344408085 m_eval 'hash_SHA256("123456789")' [void 0x15 0xe2…
Smahato
  • 1
  • 1
0
votes
0 answers

How to salt a password using PowerShell and how to store the salt?

I was looking about how to salt a password in PowerShell, as SHA512 is not the safest way to store them, I want to add a salt to reduce bruteforcing. Is there any way to add a salt to a password and then store it, to next at the moment on…
Anic17
  • 712
  • 5
  • 18
0
votes
0 answers

Verify C# HMACSHA256 in PHP

I have a user's data and the passwords are hashed with HMAC-SHA256 and encrypted with AES (Umbraco CMS with uCommerce). I need to import that password so the old user could log in to the new website (using WordPress and WooCommerce). I have a secret…