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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
68 views

Python BASE64SHA256 hash decodes different in comparison to .NET example

I am trying to reproduce a procedure for creating unique transactions identifyiers (UTI), which are used for energy trading. According to the guidlines for good practice text, the UTI are generated ...
capatain_giga's user avatar
-1 votes
1 answer
35 views

Local site hits error: ValueError: Invalid hash method 'sha256'. but replit and render sites work fine

I have a site that was built in replit and also hosted in render. I finally tried to run locally and werkzeug.security library thows error: ValueError: Invalid hash method 'sha256'. All three sites ...
fig's user avatar
  • 1
0 votes
0 answers
33 views

base64 result not what I expected - esp32 Huzzah32 feather

I am a hobbyist and I am working way outside my level of knowledge. I have searched high and low for an answer and spend several hours amending code - but I cannot get this to produce the result I ...
JonathanAskey's user avatar
-2 votes
0 answers
32 views

CryptoJS.SHA256 AccountNumberBase64 InitializationVector Key [duplicate]

I was recently searching for a way to decrypt the SHA256 algorithmn; (I know people say its a hash and its irreversible). However I found a code on thinbug.com where they used the CryptoJS.AES.decrypt ...
Rah1337's user avatar
-2 votes
0 answers
46 views

Can Someone help me with CryptoJS in PHP?, Im getting different output when converting the js to php code [duplicate]

Im trying to convert the javascript function below to php, but i still get different output the output of the function below is 9e1512ab6b96e83c5021bd06034bce13. Can anyone show me where I'm doing ...
Vivam Aclan's user avatar
0 votes
0 answers
21 views

Compute sign using secure token hit Unknown error -1073741275 using sha256 algo

I tried to sign the certificate using a secure token, but encountered an unknown error -1073741275. This error occurred when I tried to use the SHA256 algorithm. By the way, if I try to sign using SHA-...
tadaaaa's user avatar
-7 votes
0 answers
64 views

Detailed question about SHA-256 operation

Reference this site. Please look about a page beyond the title: STEP 5 - CREATE MESSAGE SCHEDULE (W) where the instructions state: Modify the zero-ed indexes at the end of the array using the ...
Bryan Kelly's user avatar
0 votes
0 answers
13 views

Is there a simple backup program in existance that will perform a SHA256 hash check to verify data?

I'm trying to avoid reinventing the wheel. Typically I use robocopy in a bat file to backup my data but it doesn't perform data verification. Has anyone written a simple program to backup data with ...
wallybanger's user avatar
0 votes
1 answer
51 views

Calculate PBKDF2 Sha256 in C# - Same results, different data

I've tried to calculate a hashed password. The mechanism is decribed here: German: https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AVM_Technical_Note_-_Session_ID_deutsch_2021-05-03....
Adrian Preuss's user avatar
0 votes
0 answers
70 views

Huawei APK Uploading Error: Calculated Signature does not match

I am trying to upload apk/aab file to Huawei App Gallery via APIs. I successfully get upload URL and necessary parameters to upload a file. On upload file step I get this error. I used bash. Error ...
Selimcan Kacar's user avatar
0 votes
1 answer
117 views

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'

This is my gatsby-plugin-csp config: { resolve: `gatsby-plugin-csp`, options: { disableOnDev: true, reportOnly: false, // Changes header to Content-Security-Policy-...
Detoner's user avatar
  • 524
0 votes
0 answers
77 views

Android: Installed APK Certificate SHA-256 Fingerprint Mismatch with App's Certificate SHA-256 Fingerprint

In my Android project, I encountered a frustrating issue where the certificate fingerprint SHA-256 of the installed APK does not contain the SHA-256 fingerprint of the app's certificate for some users....
Shahbaz Hussain's user avatar
0 votes
0 answers
37 views

Freetds php package is outdated for macOS Catalina?

The error stops when installing the freetds package and is present with SHA256 verification. Downloading https://www.freetds.org/files/stable/freetds-1.4.tar.bz2 #######################################...
Efra_9's user avatar
  • 1
-1 votes
1 answer
81 views

How to translate Java HMAC to Node/JavaScript?

I am trying to implement an HMAC signature in node from the vendor's provided Java example (their documentation was quite lacking, not detailing encodings, or requirements). The vendor's provided Java ...
Youj Ying's user avatar
2 votes
0 answers
89 views

SHA256 mismatch for hd5view brew install

I am trying to install hdfview but running into an issue where the download is getting interrupted. I'm being asked to remove this file (which I tried removing) but keep getting the same error. I have ...
Pranjal Singh's user avatar
0 votes
0 answers
182 views

AWS S3 Post Policy - what is the correct way to use the x-amz-checksum-sha256 condition?

I'm using S3 presigned post policies to upload files to an S3 bucket and I'm trying to make use of the x-amz-checksum-sha256 condition, but I can not figure out how to successfully post a file using x-...
neubee's user avatar
  • 11
0 votes
0 answers
30 views

How to Generate draft-thomas-crypto-conditions-04 in Dart?

I am working on a project that requires the generation of draft-thomas-crypto-conditions-04 compatible fulfillment and conditions in Dart. I attempted to generate conditions and fulfillments using the ...
Mohsen Haydari's user avatar
0 votes
1 answer
23 views

Postman sign query using dynamic tumestamp

I need to send a query using postman that will send using POST multiple variables. My problem is that one of the variables needs to be dynamically calculated as follows: SHA256 (API public key + the ...
user1480192's user avatar
0 votes
0 answers
41 views

Generating same fingerprints across renewal

If we need to have the same sha 256 hash on renewal for our ssl certificate, is it possible ? if yes what are the steps ? because based on my research I found out that Changing the expiry date of a ...
TahirRaza's user avatar
2 votes
1 answer
1k views

SMS verification code request failed: unknown status code: 17028 Invalid request fields in play_integrity_token - Flutter

E/FirebaseAuth(12806): [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17028 Invalid request fields in play_integrity_token D/FirebaseAuth(12806): Invoking original ...
Unudulmayan melodiyalar's user avatar
0 votes
0 answers
30 views

Node.js - hash alghoritms implementation

I have a question, is there any module that contains implementations of all hashing algorithms? I mainly care about MD5, SHA-256 and Whirlpool. I heard about the crypto module, but I can't find if it ...
soft1234's user avatar
0 votes
1 answer
46 views

HMAC SHA256, inner hash works but outer hash fails

I'm experiencing a problem integrating the output of my SHA256 with HMAC. The first/'inner' SHA256 matches the expected output but the second/'outer' does not. I am following the first example here: ...
intrigued_66's user avatar
  • 16.3k
0 votes
1 answer
90 views

How to get a sha256 as an `&[u8; 32]`?

The sha256::digest() function returns a String. I can turn this into a [u8; 32] myself, but it seems wasteful for this crate to turn bytes into a hex string, and for me to then turn this hex string ...
fadedbee's user avatar
  • 43.1k
0 votes
0 answers
34 views

How to generate a RSA 1024 key and SHA256 signature in objective-C which can be verified in java?

I want to generate RSA 1024 public/private keys and then use this private key along with the message (let's say "abcd" for example) to generate a SHA256 signature. I want this to be verified ...
Rajat Satashiya's user avatar
0 votes
0 answers
185 views

nodejs crypto.createhash('sha256') produces different hash for the same response object

I am getting a response from a server every minute and creating a hash with it. After each fetch from server the hash created is different although they are identical when checked in jsondiff. let ...
Keer's user avatar
  • 75
1 vote
1 answer
107 views

Should we keep our SHA-256 public?

When generating a Digital Asset Link we are supposed to asset links file contaning SHA-256 of our android app and post it to https://www.your-host.com/.well-known/assetlinks.json as stated here. So is ...
Vikalp Vashisth's user avatar
0 votes
0 answers
38 views

How to determine Input Output (var length) of RAW hexa data of BTC transaction?

For the following with respect to SHA-256 encoding; ...
ah_'s user avatar
  • 1
0 votes
0 answers
79 views

Signing an existing Android APK with a new certificate and releasing on Google play

So we currently have an existing keystore which we use to sign our APKs and release onto Google Play. But the certificate in the keystore is using a certificate which as been signed using SHA1RSA ...
kirti garkhedkar's user avatar
-2 votes
1 answer
241 views

C++ SHA-256 Basic Implementation doesn't match proper SHA-256

I'm trying to implement Wikipedia page pseudo-code of SHA-256 on SHA-2 page. My data input has byte granularity, I put everything on stack (efficiency is not the focus at this point). I create ...
Ilya's user avatar
  • 1,050
0 votes
0 answers
63 views

Generating OAuth 1.0 signatures with PHP core code leads to 'invalid signature' error - any ideas?

I am writing to seek assistance regarding an issue I'm encountering with generating an OAuth 1.0 signature in PHP core code. To provide some context, I have successfully generated the OAuth 1.0 ...
Parag Akbari's user avatar
0 votes
0 answers
33 views

Import helper package unavailable (Python)

Import helper package unavailable (Python) I am trying to import helper package on Python with module hash256 However it's not working from ecc import S256Point, G, N from helper import hash256 e = ...
Vincent's user avatar
0 votes
1 answer
161 views

How can I generate a receipt UUID in Oracle SQL using SHA256 and convert it to a hexadecimal string of 64 characters?

**I'm trying to integrate with Egypt EInvoicing , EReceipt , I should generate receipt UUID and to do that I should follow instructions in this link https://sdk.invoicing.eta.gov.eg/receiptissuancefaq/...
MYSE's user avatar
  • 1
-1 votes
1 answer
167 views

Using SHA-256 hash for looking up row [closed]

I am new to cryptography. In my application we are planning on securing various data using AES GCM to encrypt the data. Additional to that, let’s say I have a requirement to save some information in a ...
Raster R's user avatar
-2 votes
1 answer
199 views

Reading zip file content for later compute sha256 checksum fails [duplicate]

I have a zip file which contains some regular files. This file is uploaded to a fileserver. Now I am trying to compute the sha256 checksum for the zip file, then write the checksum into a *.sha256sum ...
Willy's user avatar
  • 10k
0 votes
1 answer
656 views

what does sha256 actually do? [duplicate]

I am trying to understand hashing in python and in particular sha256. I have a standard python function that uses the hashlib for creating a sha256 hash like this: import hashlib def hash_password(...
D.L's user avatar
  • 4,641
1 vote
0 answers
202 views

How do I use GitLab Community Edition with sha-256 repos?

I'm attempting to integrate SHA-256 Git and the GitLab community edition for personal use of SHA-256 repositories (as no real forges support them). I was wondering how GitLab CE sets its hash function ...
rhett a's user avatar
  • 11
1 vote
1 answer
39 views

What is the value of x in Sha-256?

I am hashing a input into Sha 256 got the value of M15,W15 want to get the W 16 knows the formula of W upon t but in sigma 0,sigma 1 i have a problem when I am doing the rotation and shift but does ...
Code Yard's user avatar
0 votes
0 answers
53 views

POST request works, DELETE request does not

I have the following code I created which works to open a trade on the Phemex API via HMAC-SHA256 encrypted request signature. It needs to be a POST request. public void openTradeByLimit(double size, ...
ApatheticFire's user avatar
0 votes
0 answers
111 views

7z compression and AES 256 encryption in java

I am trying to write Java code which can compress any file in .7z format and encrypt it with AES 256. I need to compress and encrypt a file through Java code and send it to a user. They then ...
GouthamRio's user avatar
0 votes
1 answer
517 views

Signature does not match when generate an AWS4-HMAC-SHA256 signature in jenkins pipeline

I am trying to generate an AWS authentication V4 signature using Jenkinns pipeline for accessing an S3 bucket in scaleway cloud and that's my script import javax.crypto.Mac; import javax.crypto.spec....
selmin's user avatar
  • 1
0 votes
0 answers
315 views

"ERROR NotAuthorizedException: Incorrect username or password" when authenticating with Cognito using AuthFlow: 'USER_SRP_AUTH' in angular

I am implementing in my angular project an authentication with Cognito using SRP(Secure remote password), I am following the documentation of the necessary methods to implement them, as seen below in ...
BRUNO's user avatar
  • 13
-1 votes
1 answer
280 views

How to generate a hash SHA256 for POST in python3

I have the need to POST a request to a service that requires a hash SHA256 signature for autentication. I have both "app_id" and "app_secret" used to generate the hash during the ...
Paulo Matos's user avatar
0 votes
0 answers
290 views

How to sign the Hash (Pdf files hash value) using Digital Signature in Swift?

My requirement in short - Sign the 'Pdf document's Hash' using 'Digital Signature' with a .pfx certificate and return the 'signed hash' (signed pdf) 1. I have 1 pdf in my local patch(in Xcode), and ...
Nikita Patil's user avatar
0 votes
0 answers
180 views

Would appreciate any assistance after a failed Homebrew command when upgrading qt@5 ... received an SHA256 mismatch error

Attempts to run brew upgrade qt@5 on a Mac running macOS Catalina results in a SHA256 mismatch error: Expected: ed082ed3cac51158ede4a0f4236eedf99c0981b3451c69f34e116fa8487fa333 Actual: ...
RosesBouquet's user avatar
0 votes
0 answers
37 views

How do I decode text that are 64 characters long

How can I decode a text. I have a 64 long character word that I want to decode from an sql file. At the top on the sql it says SET Client encoding UTF8. Also its in Hash Format: SHA1 & SHA-256. ...
garici5394's user avatar
0 votes
1 answer
103 views

Invalid hex string output for hashed (sha256) string (missing zeros)

I was writing a function to hash a string and get the result in a hex format. The output I get looks almost identical to expected, but it is shorter due to missing zeros: 64: ...
Sergey Kolesnik's user avatar
0 votes
1 answer
223 views

Is it possible to obtain the fingerprint or face auth from the phone with flutter

I am looking into local_auth library. What I understand is that you can use biometric auth locally only (you get a true or false for a match). What I need is to be able to get the auth information ...
user3808307's user avatar
  • 1,995
0 votes
1 answer
688 views

android SHA-256 certificate from debug apk file

I am working on declaring app site association in assetLinks.json file and as a part I need to declare the SHA-256 certificate fingerprint. have a debug apk and is there any way to get its SHA-256 ...
Sonia John Kavery's user avatar
0 votes
1 answer
148 views

Getting Subtlecrypto SHA-256 digest different from sha256sum in linux terminal and trying to get file digest

I am getting a different hexdigest for the same string using SHA256 algo in linux terminal and using crypto.subtle. Here is what I am getting: $ echo "foobar" | sha256sum ...
Rohit Das's user avatar
0 votes
0 answers
48 views

Preserving carriage return (\r, \n) information when decoding information

I have to decode from base64 a string. In there there is a SHA256 Digest: MDEwDQYJYIZIAWUDBAIBBQAEILkTxTJ4rAzOn3HeT5m19lcvbR4S3J10jmmAcYuc&#xD;\rnp58< But after decoding it it becomes ...
desertSniper87's user avatar

1
2 3 4 5
40