Best algorithm for hashing number values?

前端 未结 8 1359
后悔当初
后悔当初 2021-02-01 10:24

When dealing with a series of numbers, and wanting to use hash results for security reasons, what would be the best way to generate a hash value from a given series of digits?

8条回答
  •  逝去的感伤
    2021-02-01 10:34

    If performance is a factor I suggest to take a look at a CodeCentral entry of Peter Below. It performs very well for large number of items.

    By default it uses P.J. Weinberger ELF hashing function. But others are also provided.

提交回复
热议问题