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

Creating a hash of a message in C#

I'm want to use a REST API which requires a signature, which is a hash of the message using a secret key. I have a JavaScript implementation of it which works, but when I try to do the same thing in C#, it produces a different result which,…
Batash
  • 101
  • 2
  • 12
0
votes
1 answer

How to specify HMAC key as hexadecimal in Java

I'm able to successfully get a HMAC SHA256 using the following code: public static String getHac(String dataUno, String keyUno) throws InvalidKeyException, NoSuchAlgorithmException, UnsupportedEncodingException { SecretKey secretKey =…
0
votes
0 answers

Xml validation failed with RSA256with rsa Algorithm

I am trying to validate offline aadhar ekyc XML file with the sample code. But the validation keeps failing, I am not sure if it's the code error or error in the .cer file. I am using SHA256withRSA algorithm to validate the XML file as mention in…
Chinmay Das
  • 400
  • 6
  • 18
0
votes
2 answers

Signature mismatch error on payfort sdk_token generation

String ACCESS_CODE = "My_PAYFORTAcces_Code" String MERCHANT_ID = "My_Payfory_Merchet_ID" I found the issue I think the issue is with Signature generation, I tried signature generation using with the string…
SHIDHIN TS
  • 1,557
  • 3
  • 26
  • 58
0
votes
0 answers

SHA-256 Execution time is less than HmacSHA256 in java

I want to compare sha256 and "Hmac with sha256" execution time. public static void main(String[] args) throws NoSuchAlgorithmException, UnsupportedEncodingException { // TODO code application logic here byte[] data =…
niloofar
  • 1
  • 1
0
votes
2 answers

HMAC SHA256 Produces Different Result if String vs Variable in Liquid, Shopify

I'm doing some URL verification between a Shopify site and my app. On Shopify, in a .liquid file, I'm creating an HMAC value using Shopify's built in hmac_sha256 string filter. I'm using a secret key and a Twitch user ID which I've stored in a…
Nick H
  • 217
  • 4
  • 19
0
votes
1 answer

Hashing with Google Guava in Java outputting with lowercase characters while online hashing site outputs in uppercase

I'm hashing a password in Java using google's Hashing. password = Hashing .sha256() .hashString(input, StandardCharsets.UTF_8) .toString(); When I pass any text to that line, it hashes and outputs everything with lowercase…
realmature
  • 43
  • 1
  • 12
0
votes
0 answers

How to convert the output of sha256 to unique representation of binary bits?

Let's say the output of a sha256 hash function encoded to base64 is "ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs". Since the output is produced from sha256 hash function it is 256bits long. But how can i find out from the string output…
kathi
  • 1
  • 2
0
votes
1 answer

C# equivalent of OpenSSL signing

I have to sign some data using SHA256, and I have an example created with OpenSSL: johnd@johns-machine:~/sandboxcerts$ signingString="(request-target): post /oauth2/token date: Wed, 11 Apr 2018 15:07:23 GMT digest:…
Eutherpy
  • 4,471
  • 7
  • 40
  • 64
0
votes
2 answers

Run sha256sum (from Cygwin) on file with special character and blank (quoting does not work)

I have Cygwin installed in order to use Linux command line tools on Windows. I also added it to my PATH. In general, it works fine, but I observe this weird behavior: I want to run sha256sum on the file C:\Users\s1504gl\Desktop\Täst .txt. Note the…
der_grund
  • 1,898
  • 20
  • 36
0
votes
1 answer

Hexify sha digest result without using hashlib

I've got digest value of data in string format, and I'd like to hexify it. Here's the sample string '\xf0z\xd8[\xfc\x7f' However, I cannot use hashlib since I don't have the original data from which the hash was created from. trying .digesthex() on…
Zohar81
  • 4,554
  • 5
  • 29
  • 82
0
votes
1 answer

Valid request signature generation

I am trying to connect to an external API and more specifically to replicate this Ruby code here: working code . My env variables are correct, and that is if I change them, I get an Account not found response. If I use the Ruby code provided in the…
mallix
  • 1,399
  • 1
  • 21
  • 44
0
votes
2 answers

Can't generate signature for Lazada's API in NodeJS

I am trying to consume Lazada API through HTTP requests in NodeJS and it requires a signature as one of the parameters. To generate that, I'm using the js-256 package but for some reason I'm getting an IncompleSignature error. The exact error…
0
votes
0 answers

qt mysql database md5 password cheking problem

I am making registration/login form with qt c++ saving registration information in mysql password is hashed by md5 also I've tried sha256 same there, so main problem it saves password hashed and I've got no problem with that but when i'm comparing…
0
votes
0 answers

Log-In page with hashed password

I am quite new in Android development and hereby I would like to ask you for some help. Basically I have created the text fields of a Android Log-in page (username field & password field) and it works well without hashing a password. But now I want…
V B
  • 27
  • 4
1 2 3
99
100