HashUtil class

Hash算法

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

additiveHash(String key, int prime) int
加法hash
apHash(String str) int
AP算法
bernstein(String key) int
Bernstein's hash
bkdrHash(String str) int
BKDR算法
defaultHash(String str) int
hash默认算法
dekHash(String str) int
DEK算法
djbHash(String str) int
DJB算法
elfHash(String str) int
ELF算法
fnvHash(Uint8List data) int
改进的32位FNV算法1
fnvHashStr(String data) int
改进的32位FNV算法1
hfHash(String data) int
HF Hash算法
hfIpHash(String data) int
HFIP Hash算法
identityHashCode(Object obj) int
根据对象的内存地址生成相应的Hash值
intHash(int key) int
Thomas Wang的算法,整数hash
jsHash(String str) int
JS算法
mixHash(String str) int
混合hash算法,输出64位的值
murmur(String key, [int seed = 0]) int
MurmurHash算法32-bit实现
oneByOneHash(String key) int
一次一个hash
pjwHash(String str) int
PJW算法
rotatingHash(String key, int prime) int
旋转hash
rsHash(String str) int
RS算法hash
sdbmHash(String str) int
SDBM算法
tianlHash(String str) int
TianL Hash算法
universal(Uint16List key, int mask, List<int> tab) int
Universal Hashing
zobrist(Uint16List key, int mask, List<List<int>> tab) int
Zobrist Hashing