All Questions
Tagged with hashalgorithm or hash
24,637 questions
0
votes
0
answers
33
views
How to convert bitcoin genesis hex string to ascii or utf-8 string?
Hex string is from https://github.com/bitcoin/bitcoin/blob/d30f149360d10de31bd7f7369aa61ce8be0837b5/src/kernel/chainparams.cpp#L75C5-L75C206
I have tried the following Python 3 code but it doesn't ...
0
votes
0
answers
20
views
NiFi 2.4.0: Dynamically hash selected columns in Parquet records before uploading to GCS
I have a NiFi 2.4.0 pipeline:
GenerateFlowFile -> ExecuteSQLRecord -> PutGCSBucket
ExecuteSQLRecord fetches all table columns and outputs Parquet files.
I want to hash certain columns ...
0
votes
1
answer
78
views
How to convert (SQL) VARBINARY hashed password and salt columns to String for ASP.NET Core Web API
In my SQL Server legacy User table, I have the following columns (which I cannot change):
UserName: VARCHAR(50)
PasswodsHashed: VARBINARY
PasswordSalted: VARBIANRY
This table has thousands of records ...
0
votes
1
answer
69
views
Snowflake - Hash_agg comparaison issue
I have an issue when I use the function hash_agg on snowflake.
The result is different even if the data are the same in the table.
Below a data exemple
Sales id, name, price
1, Test1, 2
1, Test1, 3
1, ...
1
vote
3
answers
119
views
Why is server side password hashing not more familiar? [closed]
I'm working on a web application that has a simple login flow. My problem arises when I try to use a strong algorithm (argon2, bcrypt) for hashing the password on a limited resources AWS LightSail ...
0
votes
2
answers
65
views
How to find identical polygons
I have an algorithm that takes as input a list of polygons - each polygon is a list of 32 bit x and y coordinates, and the length of the coord list.
It then needs to normalise the coordinates to the ...
0
votes
1
answer
114
views
Getting Invalid signed properties hashing error for SignedProperties in ZATCA e-invoicing despite correct indentation
I’m working on generating ZATCA-compliant XML signatures and facing an issue with the SignedProperties section.
Here’s the exact error I’m getting back:
{
"type": "ERROR",
&...
0
votes
0
answers
164
views
Specializing std::hash for std::pair<int, int>
We are not allowed do this, although it compiles:
#include <unordered_set>
template <>
struct std::hash<std::pair<int, int>> {
std::size_t operator()(const std::pair<...
0
votes
0
answers
49
views
Why does hash((1, 2)) give different results on different systems in Python? [duplicate]
I'm solving a HackerRank problem where I'm supposed to:
Take an integer input n
Read n space-separated integers
Convert them into a tuple
Print the hash() of that tuple
type hern = int(input())
t = ...
0
votes
1
answer
109
views
Why does CAST(HASHBYTES('SHA2_256', ...) AS BIGINT) in Synapse SQL not match PySpark SHA-256 hash to BIGINT conversion?
I'm trying to replicate a Synapse SQL HASHBYTES logic in PySpark. In SQL, we use this line to generate an ETL hash key:
SELECT CAST(HASHBYTES('SHA2_256', CONCAT_WS('|', [col1], [col2], ...)) AS BIGINT)...
-7
votes
1
answer
91
views
Stuck at a test case cant understand the prolem [closed]
I am trying to improve my coding skills and I got stuck at a question and can't understand the test case. I passed the first 5 test cases but got stuck at the last one:
Top K Frequent Elements
Given ...
1
vote
1
answer
115
views
XmlReader from memory rather than file
I am looking for a way to load complex XML files with comments and return errors with line numbers, but also be able to hash the important XML after validation, so I don't have to validate at every ...
1
vote
1
answer
165
views
Why is my salted SHA-512 hashing code not matching Excel's?
I am attempting to replicate the hashing the Excel does when a sheet is password-protected in Python, but am not matching even when testing on dummy inputs. From the xml file, I am seeing this:
...
2
votes
1
answer
81
views
Safe hash of arbitrary map in Trino SQL / Athena
Using Trino SQL (actually AWS Athena implementation of Trino), I want to compute safe hashs of arbitrary MAP columns. By "arbitrary" I mean MAP that may have other MAP as values for certain ...
1
vote
1
answer
71
views
Is it possible to hash boost::dynamic_bitset directly?
Is it possible to hash boost::dynamic_bitset as keys in unordered map directly without converting it to string?
For instance, declare a hashmap as std::unordered_map<boost::dynamic_bitset<>, ...