HashUtil

Introduction

HashUtil is actually a collection of hash algorithms, which integrates various hash algorithms in this utility class.

Methods

These algorithms include:

  1. additiveHash Additive Hash
  2. rotatingHash Rotating Hash
  3. oneByOneHash One-by-one Hash
  4. bernstein Bernstein’s Hash
  5. universal Universal Hashing
  6. zobrist Zobrist Hashing
  7. fnvHash Improved 32-bit FNV algorithm 1
  8. intHash Thomas Wang’s algorithm, integer hash
  9. rsHash RS algorithm hash
  10. jsHash JS algorithm
  11. pjwHash PJW algorithm
  12. elfHash ELF algorithm
  13. bkdrHash BKDR algorithm
  14. sdbmHash SDBM algorithm
  15. djbHash DJB algorithm
  16. dekHash DEK algorithm
  17. apHash AP algorithm
  18. tianlHash TianL Hash algorithm
  19. javaDefaultHash JAVA’s default algorithm
  20. mixHash Mixed hash algorithm that outputs a 64-bit value