public static class CrossHash.Mist
extends java.lang.Object
implements java.io.Serializable
CrossHash.Yolk
or CrossHash.Curlup
for higher quality and speed but smaller salt size.
alpha_
. The whole group of 48 pre-initialized members are also
present in a static array called predefined
. These can be useful when, for example, you want to get
multiple hashes of a single array or String as part of cuckoo hashing or similar techniques that need multiple
hashes for the same inputs.Constructor and Description |
---|
Mist() |
Mist(java.lang.CharSequence alteration) |
Mist(long alteration) |
Mist(long alteration1,
long alteration2) |
Modifier and Type | Method and Description |
---|---|
int |
hash(boolean[] data) |
int |
hash(byte[] data) |
int |
hash(char[] data) |
int |
hash(char[][] data) |
int |
hash(char[] data,
int start,
int end)
Hashes only a subsection of the given data, starting at start (inclusive) and ending before end (exclusive).
|
int |
hash(char[] data,
int start,
int end,
int step)
Hashes only a subsection of the given data, starting at start (inclusive), ending before end (exclusive), and
moving between chars in increments of step (which is always greater than 0).
|
int |
hash(java.lang.CharSequence data) |
int |
hash(java.lang.CharSequence[]... data) |
int |
hash(java.lang.CharSequence[] data) |
int |
hash(double[] data) |
int |
hash(float[] data) |
int |
hash(int[] data) |
int |
hash(java.lang.Iterable<? extends java.lang.CharSequence> data) |
int |
hash(long[] data) |
int |
hash(long[][] data) |
int |
hash(java.lang.Object data) |
int |
hash(java.lang.Object[] data) |
int |
hash(short[] data) |
long |
hash64(boolean[] data) |
long |
hash64(byte[] data) |
long |
hash64(char[] data) |
long |
hash64(char[][] data) |
long |
hash64(char[] data,
int start,
int end)
Hashes only a subsection of the given data, starting at start (inclusive) and ending before end (exclusive).
|
long |
hash64(char[] data,
int start,
int end,
int step)
Hashes only a subsection of the given data, starting at start (inclusive), ending before end (exclusive), and
moving between chars in increments of step (which is always greater than 0).
|
long |
hash64(java.lang.CharSequence data) |
long |
hash64(java.lang.CharSequence[]... data) |
long |
hash64(java.lang.CharSequence[] data) |
long |
hash64(double[] data) |
long |
hash64(float[] data) |
long |
hash64(int[] data) |
long |
hash64(java.lang.Iterable<? extends java.lang.CharSequence> data) |
long |
hash64(long[] data) |
long |
hash64(long[][] data) |
long |
hash64(java.lang.Object data) |
long |
hash64(java.lang.Object[] data) |
long |
hash64(short[] data) |
CrossHash.Mist |
randomize()
Makes a new Mist with all of the salt values altered based on the previous salt values.
|
public static final CrossHash.Mist alpha
public static final CrossHash.Mist beta
public static final CrossHash.Mist gamma
public static final CrossHash.Mist delta
public static final CrossHash.Mist epsilon
public static final CrossHash.Mist zeta
public static final CrossHash.Mist eta
public static final CrossHash.Mist theta
public static final CrossHash.Mist iota
public static final CrossHash.Mist kappa
public static final CrossHash.Mist lambda
public static final CrossHash.Mist mu
public static final CrossHash.Mist nu
public static final CrossHash.Mist xi
public static final CrossHash.Mist omicron
public static final CrossHash.Mist pi
public static final CrossHash.Mist rho
public static final CrossHash.Mist sigma
public static final CrossHash.Mist tau
public static final CrossHash.Mist upsilon
public static final CrossHash.Mist phi
public static final CrossHash.Mist chi
public static final CrossHash.Mist psi
public static final CrossHash.Mist omega
public static final CrossHash.Mist alpha_
public static final CrossHash.Mist beta_
public static final CrossHash.Mist gamma_
public static final CrossHash.Mist delta_
public static final CrossHash.Mist epsilon_
public static final CrossHash.Mist zeta_
public static final CrossHash.Mist eta_
public static final CrossHash.Mist theta_
public static final CrossHash.Mist iota_
public static final CrossHash.Mist kappa_
public static final CrossHash.Mist lambda_
public static final CrossHash.Mist mu_
public static final CrossHash.Mist nu_
public static final CrossHash.Mist xi_
public static final CrossHash.Mist omicron_
public static final CrossHash.Mist pi_
public static final CrossHash.Mist rho_
public static final CrossHash.Mist sigma_
public static final CrossHash.Mist tau_
public static final CrossHash.Mist upsilon_
public static final CrossHash.Mist phi_
public static final CrossHash.Mist chi_
public static final CrossHash.Mist psi_
public static final CrossHash.Mist omega_
public static final CrossHash.Mist[] predefined
public Mist()
public Mist(java.lang.CharSequence alteration)
public Mist(long alteration)
public Mist(long alteration1, long alteration2)
public CrossHash.Mist randomize()
predefined
, or to simply
construct a new Mist with a different parameter or set of parameters.public long hash64(boolean[] data)
public long hash64(byte[] data)
public long hash64(short[] data)
public long hash64(char[] data)
public long hash64(int[] data)
public long hash64(long[] data)
public long hash64(float[] data)
public long hash64(double[] data)
public long hash64(char[] data, int start, int end)
data
- the char array to hashstart
- the start of the section to hash (inclusive)end
- the end of the section to hash (exclusive)public long hash64(char[] data, int start, int end, int step)
data
- the char array to hashstart
- the start of the section to hash (inclusive)end
- the end of the section to hash (exclusive)step
- how many elements to advance after using one element from data; must be greater than 0public long hash64(java.lang.CharSequence data)
public long hash64(char[][] data)
public long hash64(long[][] data)
public long hash64(java.lang.CharSequence[] data)
public long hash64(java.lang.Iterable<? extends java.lang.CharSequence> data)
public long hash64(java.lang.CharSequence[]... data)
public long hash64(java.lang.Object[] data)
public long hash64(java.lang.Object data)
public int hash(boolean[] data)
public int hash(byte[] data)
public int hash(short[] data)
public int hash(char[] data)
public int hash(int[] data)
public int hash(long[] data)
public int hash(float[] data)
public int hash(double[] data)
public int hash(char[] data, int start, int end)
data
- the char array to hashstart
- the start of the section to hash (inclusive)end
- the end of the section to hash (exclusive)public int hash(char[] data, int start, int end, int step)
data
- the char array to hashstart
- the start of the section to hash (inclusive)end
- the end of the section to hash (exclusive)step
- how many elements to advance after using one element from data; must be greater than 0public int hash(java.lang.CharSequence data)
public int hash(char[][] data)
public int hash(long[][] data)
public int hash(java.lang.CharSequence[] data)
public int hash(java.lang.Iterable<? extends java.lang.CharSequence> data)
public int hash(java.lang.CharSequence[]... data)
public int hash(java.lang.Object[] data)
public int hash(java.lang.Object data)
Copyright © Eben Howard 2012–2022. All rights reserved.