Блог пользователя TareqMahmudHridoy

Автор TareqMahmudHridoy, история, 5 лет назад, По-английски

Is it more secure to use two hash function like mod1=1e9+7 mod2= 1e9+9 for calculating hash value ???

  • Проголосовать: нравится
  • +8
  • Проголосовать: не нравится

»
5 лет назад, # |
Rev. 2   Проголосовать: нравится +8 Проголосовать: не нравится

Yes it is. But even 8 hashes still can be hacked . So the best thing to do is to use random:

One popular approach is to store several modulo values and several bases and choosing them randomly.

I prefer to not mess with modulus but to choose random base instead(like random number in range [l;r]) (remember that it should always be greater than size of alphabet).

Also remember to use good random number generator.