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

How to verify checksums between Windows and Linux

I have Jenkins build that reads a file from an Azure DevOps repository and runs a .NET dll that verifies the SHA256 of that file against the SHA256 provided in a manifest file. Unfortunately, Jenkins runs on Linux and does a phantom update to the…
0
votes
1 answer

Random hex string get 'none' when sha256 in python

Can you please help me to understand such a simple subject. I need to produce a serie of random hexadecimal strings for which I'm using: import secrets x = secrets.token_hex(32) This gives me something like this:…
Felipe Galaz
  • 5
  • 1
  • 1
  • 6
0
votes
1 answer

Decode string using python || SHA256

I am currently using hashlib library in python to encrypt a URL using SHA256. Following is the code. import hashlib url='https://booking.com' hs = hashlib.sha256(url.encode('utf-8')).hexdigest() print(hs) #…
Mahesh
  • 1,117
  • 2
  • 23
  • 42
0
votes
0 answers

Wrapped FileStream creates a different hash from a file

I need to read a huge file, remove some whitespace characters, compress the content and create a double SHA256 hash from it. To avoid loading the whole file into memory (which is impossible, as some of the files have several hundreds of mb) and to…
Kris
  • 512
  • 7
  • 16
0
votes
0 answers

AES-256(CBC) : encryption in Java/Decryption in JavaScript(CryptoJS)

I am doing encryption in Java and decrypting it with JavaScript using AES-256/CBC, but actually this is the scenario: while encryption of .pdf, .jpg, in other words, other than text files Java produces the encrypted file with roughly the same bytes…
Aryesh
  • 386
  • 2
  • 16
0
votes
1 answer

How to hash password with sha256 in flutter?

I'm trying to send email and password to API. The password needs to be encrypted with sha256. So far I tried 2 packages - flutter_string_encryption and crypto but can't get it to work. With the first package, I can't find the sha256 method and with…
Sprowk
  • 355
  • 1
  • 6
  • 15
0
votes
0 answers

Will sha256 give all possible answers

I'm writing this on mobile... So I was recently thinking about the hash function Sha256 and I though about to what values it mapps. You can pretty much give Sha256 any value and it would return a 32 character string. My question is if all 32…
HardCoded
  • 134
  • 2
  • 8
0
votes
1 answer

OpenSSL message digest creation

Basic problem is me generating a signed document with "openssl smime" and being able to verify it, but my partner is not (using a different software). So I tried to dig into it and have a look if his and my message digest are identical. But - I…
SlowFox
  • 63
  • 5
0
votes
0 answers

Difference between hex(sha256(...)) and sha256(...)

i have been fiddling with creating a signature for AWS (https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html) and i was going through the first diagram (in the link) and in the first example Hex(SHA256HASH(CanonicalRequest))…
Red
  • 65
  • 1
  • 7
0
votes
1 answer

Perl read file line by line output SHA256

I'm trying to read a text file line by line and then printing out the SHA256 value in terminal afterwards. #!/usr/bin/perl use strict; use warnings; ... use Digest::SHA qw(sha256_hex); while ( my $line = <$fh> ) { print $line; print…
Perez
  • 1
  • 1
0
votes
3 answers

Access denied after setting user's password with SHA256 in phpMyAdmin

After seeing that default passwords generated by phpMyAdmin used mysql_native_password and therefore hashes didn't changed when equal passwords where used, I updated one user's password and set the hashing to SHA256. When I tried to login again…
Jorge C.M
  • 375
  • 3
  • 11
0
votes
1 answer

How to Decrypt a string using AES-256 CFB with PKCS5PADDING in swift?

I am looking to decrypt a string using AES, I tried multiple solution from SO but none of them helped and I was unable to get the solution. The android developer used Cipher to do it below is the code for that:- private static final byte[]…
Irshad Qureshi
  • 807
  • 18
  • 41
0
votes
0 answers

ASP.NET certificate signing xml/pkcs algorithm change. SHA1 to SHA256

We are upgrading our website from ASP.NET 4.61 to 4.8 and running into the following issue with our certificate.…
stymie2
  • 101
  • 10
0
votes
1 answer

Implementation of SHA256 in python3, final hash is too short

I'm trying to write an implementation of SHA-256 in python 3. My version is supposed to take in a hexadecimal encoding and output the corresponding hash value. I've used https://en.wikipedia.org/wiki/SHA-2#Pseudocode as guide. My function works…
xaxablyat
  • 27
  • 1
  • 7
0
votes
1 answer

Shell BASH---SHA256 Hash Collisions occur in file extraction

I use sha256 hash value to encrypt a password( no matter digit form or char form ). when I unzip the password-protected file, I can use at least two different hash to unzip my file -- it occurs a Hash collision. Although there is no searching point…
Hang Wui
  • 27
  • 5