lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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 
--
Andrea Vitali