Implematation of hash functions for dart.