Questions tagged [hash]
A hash function is any well-defined procedure or mathematical function that converts a large amount of data into a small datum, usually a single integer. For questions about hashtags as used to label content on social media, use hashtag. For questions about URLs and HTML anchors, use fragment-identifier. For questions about Ruby's hash type, use ruby-hash.
24,055
questions
0
votes
0
answers
8
views
Why does `blake2b` on a `numpy` array give different results in different machines?
I ran the following code in two different machines:
import numpy as np
from hashlib import blake2b
print(blake2b(np.array([1, 2, 3])).hexdigest())
The two machines print a different result. Why ...
-1
votes
1
answer
16
views
Less dissociated hashing? [closed]
I am trying to implement a visual representation of a number strings to make it easier for the user to identify similar values. The first part of this is generating a fixed length hash of the data - ...
0
votes
0
answers
12
views
In Cryptography KAT tests how to use SHA256 correctly?
I got a project on github which I want to use for a school project and all relevant data for the question is in the "KAT" folder. However, I got 1 problem. It contains .rsp1 files with the ...
0
votes
0
answers
23
views
Rewrite ASP.NET MembershipProvider SHA1 hashing algorithm in Node.js
As part of a project I'm working on, I need to support a number of SHA1 hashed & salted passwords created by ASP.NET's MembershipProvider. I need to rewrite this in Node.js and despite scouring ...
0
votes
0
answers
23
views
.NET 7 API Middleware Mask
I am developing an API with .net 7. My question is, can we mask the parameters coming to all ends in the API in the middleware?
For example
public async Task<ApiOperationResult<Token>> ...
0
votes
0
answers
16
views
How can I find all unique sub graphs within a graph database such as memgraph?
I have a dataset of tens of thousands of directed subgraphs. The subgraphs are trees, they branch from the root node and never merge. I want to find all the unique subgraphs based on the event_type ...
0
votes
4
answers
55
views
Error when using bind_rows where one data frame has a column of type <hash>
I want to bind rows from two different data frames where one data frame contains a column of hash values whereas the second data frame doesn't contain this column.
library(tidyverse)
library(openssl)
...
-4
votes
0
answers
29
views
How to generate the well know SHA256 file with the 7-ZIP GUI? [closed]
Since over 1 hr I try to find how I generated the SHA 256 file with the 7zip GUI?
I cant remember, and I dont find help in Google or AI so I ask you to help me.
I generated a file in the past and its ...
-5
votes
0
answers
41
views
How to calculate CRC32 of strings longer than 3 characters? [closed]
I try to calculate CRC32 of strings as described in this website
In that website, example string is Hi\n which has 3 characters length.
String is converted to binary format and then inverted. Then it ...
0
votes
3
answers
253
views
Double floating point operations using four IEEE rounding modes implemented in terms of round to nearest ties to even
I am looking to implement the RandomX Proof of Work hash function in JavaScript + WebAssembly. The README explains how this isn't possible:
Web mining is infeasible due to the large memory ...
-2
votes
1
answer
55
views
class "std::basic_string<char, std::char_traits<char>, std::allocator<char>>" has no member "c_str" C/C++(135) [closed]
As a personal project, I was thinking of creating my own blockchain to use in a cryptocurrency that I also would like to create entirely from scratch in C++.
While I was writing my code, I suddenly ...
-1
votes
0
answers
34
views
How to decide which is better option to implement nonce or hash for inline scripts-CSP
What if in big application,we use something like below in multiple areas
<button type="button" class="btn btn-primary" onclick="func1()">test</button>
<...
0
votes
0
answers
26
views
Question about hashing for security research [closed]
So when a User sends a post request with login credentials to the server for the first time. The Server hashes the password and stores it. When the User logins in again with that password it gets ...
2
votes
0
answers
49
views
Unexpected differing BINARY results in Azure Spark Notebook depending on magic code %%sql or %%pyspark
Hello stack overflow community,
I am currenty facing an issue in an Azure Synapse Analytics Spark Notebook that I do not understand and need help with (hint: The Spark version of the Apache Spark pool ...
0
votes
1
answer
21
views
How can I make hashing algorithm for code snippets?
I would like to make an algorithm, which can detect code snippets when iterating through source codes, based on some hashing algorithms.
So for example, here is that short code snippet from a fragment ...