Package org.tribuo.hash

package org.tribuo.hash
Provides the base interface and implementations of the Model hashing which obscures the feature names stored in a model.

The base interface is Hasher, which has three implementations: HashCodeHasher which uses String.hashCode(), ModHashCodeHasher which uses String.hashCode() and remaps the output into a specific range, and MessageDigestHasher which uses a MessageDigest implementation to perform the hashing. Only MessageDigestHasher provides security guarantees suitable for production usage.

Note Hasher implementations require a salt which is serialized separately from the Hasher object. Without supplying this seed the hash methods will throw IllegalStateException.