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

Does changing certificate invalidate all secret generated with IdentityServer4.Models.Secret Sha256() method?

I'm currently building my web application with identity server 4. I dynamically create clients with a secret generated with Sha256() method of identityserver 4. However, i'm worrying that when i will renew or change my certificate all those secret…
Pilouk
  • 1,267
  • 1
  • 18
  • 36
0
votes
1 answer

concatenate & Hex 256sha Hash a Signature

I am trying to create a request in postman that pulls some parameters and puts them in the proper order and then hashes in sha256 hex. I understand I need to use a pre-request script but am struggling with what to use and how to get parameters in…
Matt
  • 57
  • 5
0
votes
1 answer

AWS KMS and on Premises HSM

Can anyone define the process flow for data encrypt and decrypt for me running a local HSM in the data centre connected via IPSEC tunnel to AWS. Using our Local HSM for these actions. What is the process flow for encrypting and decrypting objects,…
0
votes
1 answer

Java Socket Programming with UDP

I am trying to send some number and hash using server client. I am using the UDP protocol to do so. I create a packet using wither the number or the hash, as I was supposed to, and sent it using the socket. The client receives it and consequently,…
Bikas
  • 23
  • 1
  • 8
0
votes
1 answer

Hashing different arrays of JSON objects get the same hash value for everyone

I'm trying to hash an array of JSON objects but for some reason the generated hasd doesn't change in some circumstances. These examples were tested in nodejs by using the sha256 hashing algorithm package. arr1 = [{a:…
wilson
  • 627
  • 2
  • 11
  • 24
0
votes
4 answers

Digital sign with sha256 with c#

here in Italy, we will need to digitally sign all invoices since January 2019. I found a code that works well with sha-1, but I need to use sha256 as standard. The code below, after successfully detect USB key, and ask me for the certificate to use…
Mago Maverick
  • 33
  • 1
  • 9
0
votes
2 answers

Java SHA256 generates different hash as in Python

I am trying to generate OTP, but after I tried to rewrite code from python to java, I have got different outputs. I do not understand why, because some of outputs characters are same (when I change uname or ctr). PYTHON CODE: from Crypto.Hash import…
fauzt
  • 71
  • 10
0
votes
1 answer

Error when using SHA256 via spring in xml config

I'm trying to use java.security.MessageDigest with spring like so. Bean definition...
Richie
  • 4,989
  • 24
  • 90
  • 177
0
votes
3 answers

SHA-256 Hashing with secret key swift

I am a newbie to encryption and hashing algorithms. I need to Hash a string with a secret key using the SHA-256 algorithm. I tried multiple links from stack overflow and some other tutorials as well, Using those links, the output I received in iOS…
Tarun9573
  • 1
  • 3
0
votes
2 answers

Makecat failure: no members found

I am trying to modify existing input cdf file to use SHA256 instead of SHA1 by adding following two lines under [CatalogHeader] section: CatalogVersion=2 HashAlgorithms=SHA256 Executing makecat.exe now gives me following failure message even though…
Paul
  • 1
  • 1
0
votes
0 answers

Checksum changed when generated with the same object

I have an algorithm use to generate and return a checkSum when an update operation is called. The second update need to send the given checksum, who is the proof that the object is exactly the same. Otherwise, an exception is throw. Here is my class…
Xavier W.
  • 1,270
  • 3
  • 21
  • 47
0
votes
0 answers

C# - NET 4.0 - Cryptography: handling signing and encode/decode using SHA256 and PKCS#10

I'm facing a new situation involving a program, written in .NET Framework 4.0/C#, which has to encode/decode and sign messages to be sent/received in a particular kind of WAN. This is the current scenario, which is working fine. We have a .p12 file…
user919501
  • 11
  • 2
0
votes
1 answer

Is there any method to convert a SHA256 hash string to a Java string?

I have the following code and I want a Java string from a SHA256 hash string. Is there a way to convert hex string to its original value? public class CryptoHash { public static void main( String[] args ) throws NoSuchAlgorithmException { …
0
votes
1 answer

Python sha256 hash padding issue

I have a issue with the padding of a sha256 hash. #!/usr/bin/env python import sys import os import hashlib from passlib.hash import pbkdf2_sha256 code = str(sys.argv[1]) print(code) array =…
0
votes
1 answer

SHA256 is undefined

I was experimenting with CryptoJS library and came across with the problem that my imported hash function isn't visible inside a class. Here's my code: CryptoJS = require('crypto-js'); SHA256 = require('crypto-js/sha256'); class trCrypt { …
Paul Losev
  • 969
  • 1
  • 12
  • 17
1 2 3
99
100