Re: question on hash for long strings
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: question on hash for long strings
- From: Andrea <andrea.l.vitali@...>
- Date: 2020年5月25日 06:17:44 -0700
Anything that sub-sample the string in a predictable way makes it very easy to generate collisions: just use characters that are not hashed
So sub-sampling should not be there or sub-sampling must not be predictable looking at the code
For Max security one should not be able to predict the hash of a new string based on previous strings and their hashes - use a keyed hash such as Siphash which is in fact adopted by many
But you can do this in your Lua installation
Andrea
--