The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
0answers
73 views

Is this a serious flaw in Mathematica's default hashing algorithm

Below, I define two expressions X and Y (which arose in the wild!) such that not only ...
6
votes
1answer
145 views

HMAC implementation in pure Mathematica

I am trying to implement the HMAC algorithm in Mathematica. The algorithm is a relatively simple way of signing messages with a key. Here is some pseudocode from Wikipedia: My attempt: ...
2
votes
0answers
100 views

When does Mathematica automatically use dispatch tables for function evaluation? [closed]

I've read the documentation for Dispatch, and it says: Lists of rules produced by assignments made with = and := are automatically optimized with dispatch ...
5
votes
1answer
367 views

Why should we make sure the calculated MD5 is of length 32?

I see when people write code on calculating MD5, (even in the documentation), they write like this: IntegerString[Hash[something, "MD5"], 16, 32] But I think ...
6
votes
2answers
280 views

Why does the hash of a file differ from the hash of its content?

FileHash doesn't allow arguments like FileHash[file,{"CRC32","MD5"}]; A solution could be: ...
23
votes
1answer
324 views

Default behaviour of Hash[expr] and hashing in different versions of Mathematica

In different versions of Mathematica, Wolfram silently changed the behaviour of Hash when the algorithm is not specified explicitly ...
12
votes
3answers
663 views

Why does Hash return different values in Version 7?

This function does not work correctly for me. The generated Gravatars do not match the ones actually produced by using the corresponding address. The problem was traced to differing output from the <...