24,618 questions
Score of -3
1 answer
152 views
Iframe keep reloading in firefox, when updating hash value using window.location.hash
Im trying to update the hash value of my iframe page, by setting value to window.location.hash= 'hash/value/for/section'
But, once the hash set, the iframe starts reload. then landing the page, again -...
Score of 0
5 answers
156 views
String hashing ignoring order
I am looking for a way to implement such hashing.
const str1 = "abc"
const str2 = "zyx"
const hash1 = hash(str1+str2)
const hash2 = hash(str2+str1)
// expecting hash1 to be equal ...
Score of 0
2 answers
129 views
Methodology for benchmarking Hash Algorithm resistance against Quantum Attacks
I am currently thinking of choosing a Master's thesis focused on the vulnerability of standard Hash Algorithms (SHA-2, SHA-3, etc) to Quantum Computing.
I am looking for guidance on a robust ...
Score of -4
1 answer
324 views
how to compute MD5 hash in Google Sheets using a single formula?
Is it possible to implement proper, fully fledged MD5 hashing using only native Google Sheets formulas? Especially since there is no native function like:
=MD5("text")
=ARRAYFORMULA(MD5(A2:...
Score of 15
0 answers
585 views
GCC vs Clang when packing array<uint8_t,N> into uint64_t
I have a hash table with the key type std::array<uint8_t,6>, and I am trying to come up with as fast hash function as possible. One option is to pack all six 8-bit integers into a single 64-bit ...
Score of 0
4 answers
156 views
How to compute a stable SHA-256 (or other hash) string for a Java object with nested classes, List, Set, and Map fields?
I need to compute a deterministic SHA-256 (or similar) hash string for a Java POJO that contains nested objects, List, Set, and Map fields. Class may contains ordered and unordered data structure.
Ex:
...
Score of 0
4 answers
145 views
Fastest hash function for a sparse key
I have a uint32_t key with 2-4 bits set, and I have a perfect hash map. Right now, with a python script, I brute force to find kMul such that all the keys are in separate locations. The keys are ...
Score of 0
3 answers
150 views
Why does Python have `hash(-1) == hash(-2) == -2`?
I'm not sure how to really motivate this question, but in playing around with integer hashes in Python (3.14.3, but I imagine this has been the case for many versions), I noticed that for almost any ...
Score of 1
2 answers
293 views
How to cryptographically prove a file existed at a specific time? [closed]
I need to prove that a specific file (e.g. a PDF contract or build artifact) existed at a certain point in time, in a way that is independently verifiable after anchoring, without requiring the ...
Score of 0
5 answers
135 views
Finding substrings from the string using sets: algorithm's logic
I was solving the algorithm problem: find all unique substrings from the string, using sets.
Here is the model solution, but I can't understand what line 6 means. Why does the end go up to length + 1? ...
Score of 1
0 answers
111 views
Undocumented authentication used by epson ESC/VP.net protocol. What is right algorithm/hash function to compute response?
I have captured multiple authentications by the Epson Projector Management tool. I have also found the spec of the used protocol ESC/VP.net.
In the spec unter point 5.6.3 it is outlined which frames ...
Score of 0
3 answers
109 views
how to open digitally signed / hashed / secured video files
i am seeking for advice for opening video files which were supposed to directly auto run from a pen drive but did not run due to some issue from the provider. the files are school subject video ...
Score of 0
3 answers
188 views
Hashlife: what kind of fresh hell am I getting into?
As the title suggests, I'm trying to tackle Hashlife.
Am I jumping in blind? No, well, not entirely.
First thing, I've studied this article concerning GoL:
https://medium.com/@d.dadiani343/how-to-...
Score of -1
1 answer
126 views
Improving lookup time on Python dictionaries with string keys
I'm working on a project that involves generating random data according to a wide variety of specific distributions. The number of sample points to generate can go up to hundreds of thousands, ...
Score of 0
3 answers
60 views
Chaining calls to the only available hash function to "increase" the entropy
Let's say my platform / framework only allows me to use a single hash function ($toHashedIndexKey, for the reference, presumably truncated first 64-bits of standard 128-bit MD5 hash implementation). ...