Class CityHash

java.lang.Object
org.miaixz.bus.core.codec.hash.CityHash
All Implemented Interfaces:
Encoder<byte[],Number>, Hash128<byte[]>, Hash32<byte[]>, Hash64<byte[]>

public class CityHash extends Object implements Hash32<byte[]>, Hash64<byte[]>, Hash128<byte[]>
Google发布的Hash计算算法:CityHash64 与 CityHash128。 它们分别根据字串计算 64 和 128 位的散列值。这些算法不适用于加密,但适合用在散列表等处。

代码来自:https://github.com/rolandhe/string-tools 原始算法:https://github.com/google/cityhash

Since:
Java 17+
Author:
Kimi Liu