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
0 answers

Function to hash specific columns in Spark Scala using SHA2

I have a streaming Dataframe reading messages from Kafka. Before I initiate writeStream, I want to hash some columns, and mask few others. Columns to be hashed or masked would be different for different tables and hence I am making them…
Swapandeep Singh
  • 91
  • 1
  • 3
  • 11
0
votes
1 answer

How to translate openssl command pbkdf2 in c languge?

Hy guys, another problem about openssl: I have this command: openssl enc -aes-192-cbc -pbkdf2 -e -in -out -pass pass:password Now i have only the ciphertext of this command and i know the password and then i know also the salt…
Valerio Coretti
  • 147
  • 2
  • 8
0
votes
1 answer

Flask sha256_crypt.verify returning `not a valid sha256_crypt hash`

I am using Flask for a web login page. I am trying to exploit sha256 password encryption, but I have no idea why line sha256_crypt.verify(password,pass_data) is throwing with the error in title. Is there anything I am missing? If I can give more…
Tawhid
  • 1
  • 3
0
votes
1 answer

Why does SHA256 hash not match after uploading and downloading file?

I'm creating a feature for an app to store a file on a webserver while maintaining data about the file on SQL Server. I generate a SHA256 hash and store it as BINARY(32) and then upload the file to a WebDav server using HTTPClient. Later when I want…
redcabbage
  • 31
  • 1
  • 4
0
votes
1 answer

C++ openssl SHA256 running slower than JDK SHA256 implementation

I am working on a project and as a part of it, I have to roughly simulate the Bitcoin Proof of Work computation. This involves iteratively computing SHA256 twice on a concatenation of a fixed "BlockHash" string and a 32-bit int nonce which is…
aayushARM
  • 41
  • 1
  • 10
0
votes
0 answers

How does openssl perform hashing on stdin when multiple inputs are given?

How does openssl perform hashing on stdin when multiple inputs are provided? For example if the command entered is: openssl {enter} sha256 {enter} foo {enter} bar {enter} foobar {enter} ctrl + d The resulting hash I'm receiving is…
bbeckca
  • 41
  • 3
0
votes
1 answer

Same results for Encoding, but different results for hashing

I am trying to compare results of hashing in java and python. i have a snippet of code for java and python both giving same output for Encoding with UTF-8 but giving different(kind of ) results for Hash with sha256. JAVA code: String hash = "hello"…
0
votes
1 answer

Translating Java password hashing method to JS implementation

I would like to translate Java code password hashing used in Blynk IoT software that I can use in Express.js app. Thanks for any help! Java code: https://www.onlinegdb.com/HJe19lyFB import java.nio.charset.StandardCharsets; import…
patryk0493
  • 15
  • 6
0
votes
2 answers

Unable to obtain the same sha256 hash in python and javascript

I am following the steps to call a PSD2 endpoint, base64 code the message, then get SHA256 to obtain the Hash from it and get the base64 of the hash. I am using the same values of the examples to check if I am doing it right. They also provide a…
NoiK
  • 162
  • 1
  • 11
0
votes
1 answer

How to SHA-256 hash text in a chrome extension with SubtleCrypto

I am hashing a text field with Subtle Crypto and getting an [object ArrayBuffer]. The relevant code is here: async function asyncCall() { var enc = new TextEncoder(); // always utf-8 var enc2 = new TextDecoder(); // always utf-8 var digest3 =…
metamonkey
  • 427
  • 7
  • 33
0
votes
2 answers

How do I convert this JS signature generator function into Ruby?

I'am trying to integrate the Zoom SDK into my application and I am having trouble figuring out how to convert their example code for generating the signature into ruby. Example Code - const base64JS = require('js-base64'); const hmacSha256 =…
0
votes
1 answer

read checksum from artifactory given the artifact url

I want to read checksum from artifactory given the artifactory url and append it to an attribute. I tried to look for examples but people are hardcoding the checksum value like below. If I hardcode the value, I will have to update it when I have…
shri Bin
  • 73
  • 1
  • 7
0
votes
0 answers

Generating a SHA-256 Hash with trailing zeroes

Using Linux terminal I'm able to generate hashes with leading zeroes, but I'm confused on how I would be able to generate hashes based on the number of trailing zeroes.
0
votes
1 answer

Porting SHA 256 to Excel. A question: Argument as Binary, not ASCII

I am writing an a question about this code: Porting SHA-256 library to Excel If I use the above function in Excel, I am not doing a SHA on the binary data, but in the ASCII representation of the data. As I want to "mine bitcoin in Excel" (only a…
Zippo76
  • 7
  • 3
0
votes
1 answer

What hashing algorithm can safely be used to hash sets of keywords in-order to generate unique keys for a database table?

I have a need to enforce that entries into my database table contain unique sets of keywords or the entry should be denied. Order does not matter, just that each set of keywords need to be unique. For example: take this existing sample record in…
DevMike
  • 1,630
  • 2
  • 19
  • 33