Skip to content

Is crypto_shorthash collision-resistant for 64 bits inputs? #1249

Answered by jedisct1
mgcrea asked this question in Q&A
Discussion options

You must be logged in to vote

It is not.

SipHash is a pseudorandom function. Which means that for a given key, with a sequence of distinct inputs, the output will look like a random sequence.

Looking like a random sequence implies that outputs may repeat.

What you're looking for is a 64-bit block cipher, and this is only safe with a small number of inputs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mgcrea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants