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
1 answer

Why does HMAC+EVP_sha256 return a different value than openssl for some hashes

When trying to generate HMAC+SHA256 signatures, for some payloads, I get a different result from openssl command line than openssl lib. This is to try and generate a v4 signature for AWS. I am able to do it with bash/curl successfully. The code…
0
votes
1 answer

I have JWT middleware set up in ASP.NET Core 2.2 Web API. It only works with RSA256 and NOT HS256

For the problem stated in the title, when I attempt an RSA256 Access Token, the JWT Decode decodes it and more importantly, "OnTokenValidated" gets called from the JwtBearer events. Here's the code shortened for brevity. Remember, this works fine…
0
votes
1 answer

Artifactory Upgrade from 4 to 6 - SHA256 re-indexing takes very long

I am upgrading Artifactory Pro from 4.12.2 to 6.5.2. On my test instance, with around 12k artifacts, the re-indexing of the database after the upgrade takes around 12 hours. I'm afraid in my prod instance it will take close to a month (around 800k…
SSingh
  • 1
0
votes
0 answers

SHA256 encrypt lines in a file using Windows

How would I SHA256 encrypt each line in a csv file in Windows? It's a simple csv file of email addresses and I want that converted to SHA256 hashes, not the clear text emails. macOS/Linux is my home OS, so I'm a little lost to know if this is…
Kong
  • 8,792
  • 15
  • 68
  • 98
0
votes
1 answer

Is there a way to convert sha256 to md5 hashing

I'm trying to import users credentials from one database schema to another one without users needing to create a new password, So first user table (the one I need to import to the new site) uses sha256+salt(I think) and my new site is using md5+salt…
0
votes
1 answer

Convert String to Char* and Hash It using SHA-256

I'm trying to concatenate the current DateTime to my devices Mac Address in the following format: aa:bb:cc:dd:ee:ffYYmmDDhhMMss so I can hash it and send it to a web service every time I collect new data (so I'll have to hash it in every loop) I…
langStrife
  • 43
  • 1
  • 9
0
votes
1 answer

Is there a way to create hash(sha256) for images in Yocto's swupdate layer?

My objective is, To create sha256 for all the required files(which go into .swu) To Sign sw-description file with RSA algorithm. My .swu consists: kernel Image - bzImage rootfile system - panther2-usb-panther2.ext4 software description file -…
Raxesh Oriya
  • 383
  • 6
  • 27
0
votes
1 answer

Converting sha1 to sha256

I have a .sh file generating an openssl sha256 key $(echo -n ${DATA} | openssl sha256 -binary | base64) And need to generate same key to compare it to using sha256 in my php file, the old one is sha1. This is my php code right now, which outputs…
keneso
  • 301
  • 1
  • 2
  • 10
0
votes
0 answers

Is there any way to convert the hexcode back to SHA256 object?

How to convet hexcode produced from SHA256 back to the SHA256 object ? digest = SHA256.new() # digest empty digest.update(str(data).encode()) # digest has string hashed hex_code = digest.hexcode() hexcode contains the digest of the data ,…
0
votes
1 answer

How to get same result with Dart sha256 and C# sha256?

I have to convert string to sha256 in dart. For example I use String a = "2424242401224672"; In my code below I get an result as; digest: 7b73641404a8fe6a4b1161a85db736be2a6c07a046109b993186f7a22190bf13 The Code: String a = "2424242401224672"; …
Nick
  • 4,163
  • 13
  • 38
  • 63
0
votes
1 answer

Why Does My Java Private Key Signature Not Match My Openssl Signature?

So the signature that I'm getting from Java doesn't match what I'm getting in openssl. Here's an example of what I'm doing: In a terminal using openssl I'm doing this. echo +pkCdYME5SzI7A2PV0r8/8FqYGZyvTp+4DoGkdaMYRs= hash openssl dgst…
caleb
  • 43
  • 1
  • 1
  • 6
0
votes
0 answers

How many values can hashlib.sha256(hashlib.sha256(str(x).encode()).digest()).hexdigest() have?

I am aware that for any x, int(hashlib.sha256(str(x).encode()).hexdigest(), 16) has 2**256 possible values. How many possible values does the following have then? int(hashlib.sha256(hashlib.sha256(str().encode()).digest()).hexdigest(), 16) I…
Eungda
  • 49
  • 4
0
votes
2 answers

How to hash multiple times and concatenate a string in each round

I am writing a program which concatenate a word R at the end of a password and then calculate the SHA-256 hash. Later on, adding the R word again at the end of the hex result and calculate the new hash with SHA256. I want this to repeat for 100…
Codefather
  • 27
  • 1
  • 9
0
votes
2 answers

SHA_256 Hash in Bigquery

I am trying to find the SQL equivalent of hash in bigquery. SQL : SELECT CAST(HASHBYTES('SHA2_256', CONCAT( COL1, COL2, COL3 )) AS BINARY(32)) AS HashValue Big…
Aced
  • 89
  • 1
  • 2
  • 8
0
votes
1 answer

C: sha256 hash function outputs in fields of structure array inducing crash when writing structure contents to disk

I am attempting to write a program which will store credential information in an array of structures and then print that information out into a file (this is for learning purposes only, don't worry). To do this, I create an array of structures and…
user3734522