Questions tagged [hashing]
The hashing tag has no summary.
31 questions
0
votes
0
answers
96
views
Internal`HouseKeep function definition
I came across the Internal`HouseKeep[] function. I can't understand exactly how it works. The name of the function is not at all descriptive, but if you call it, it ...
0
votes
0
answers
93
views
Weird behavior of repeated Mod of Hash
I was working on a wolfram challenge problem involving Hash, and I noticed some very odd behavior. The problem is to create a function ...
1
vote
1
answer
125
views
How to remove/ (avoid) the # sign in "Solve" output [duplicate]
I am trying to find an equation of A with variable B using the Solve function.
I have the first derivative of firm A's profit with respect to location a, which is equal to zero.
I have the first ...
6
votes
4
answers
425
views
Using multiple hashtags in NestList
Are multiple hashtags allowed in NestList usage? If yes, how to implement it?
Example,
f[{x_, y_}] := {x + y, x - y};
NestList[f, {100, 75}, 5]
My attempt,
...
4
votes
1
answer
159
views
Search speed of downvalues when indexing with strings
I'm writing a lot of print functions for different parts in a package and at the moment am using something like
myprint[ identifierString_String ][ data_ ] := ...
...
4
votes
2
answers
192
views
From list to unique ID number AND back
If I have a series of list of the form $L_k=\{a_1, a_2,...a_n\}_k$ with $-4<a_i<4$ and $a_i\in\mathbb Z$, then I can make a unique ID number for $L_k$ using ...
2
votes
1
answer
152
views
Unique matrix ID and fast checking
I have the following problem :
I have a programm which can generate a lot of 3x3 matrices whose elements take integer values in [-3;3], example :{{1,2,3},{-3,0,-2},{1,1,1}}.
Each time my programm ...
8
votes
1
answer
603
views
How to define your own hash type?
Currently Mathematica offers support of a bunch of different hash algorithms. I would like to add my own to the list. In this way I can still use the function Hash[]...
3
votes
1
answer
214
views
User implemented SHA-1 isn't outputting correct hash
EDIT: I'm actually Thinking the issue is in the initialization phase, where we pad the message with 1's, 0's, and the message ...
1
vote
0
answers
62
views
Keyed Hash for HMAC SHA256 [duplicate]
I'm trying to use AWS REST API's (because I can't rely on AWSLink`). The sample C# code from Amazon uses this a lot:
...
1
vote
1
answer
133
views
Problem passing argument in hash table from global context to a module
I was experimenting with passing arguments via a hash table to a module. Found a very strange result. When I pass a function to be plotted inside the module, it comes out empty.
Yet all argument ...
18
votes
2
answers
1k
views
How has Hash changed in 11.3?
There are already few topic related to Hash[_String]:
How does Hash calculate hash for strings?
Incorrect calculating Hash SHA256
But it looks like changes are ...
1
vote
2
answers
417
views
Incorrect calculating Hash SHA256
At the moment I'm using version 11.2. A few days ago, after an update in my programs, I found errors. It turned out that the new version incorrectly computes the hash. I'm using method SHA256. And ...
19
votes
1
answer
651
views
HMAC correct on 11.2 but wrong and different on 11.3 running same code
If you run this code on 11.2
...
8
votes
1
answer
565
views
How does Hash calculate hash for strings?
I have this code
Hash["a","SHA"]
Hash[ToCharacterCode["a"],"SHA"]
and I was expecting to get the same result, but somehow it is different.
My question is: how ...