public class HashUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MD5 |
static java.lang.String |
SHA1 |
static java.lang.String |
SHA256 |
static java.lang.String |
SHA512 |
Constructor and Description |
---|
HashUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
hash(java.lang.String algorithm,
java.lang.String s) |
static int |
hashCode(boolean bool)
Return the hash code of a bool value.
|
static int |
hashCode(double dbl)
Return the hash code of a double value.
|
static int |
hashCode(float flt)
Return the hash code of a float value.
|
static int |
hashCode(long lng)
Return the hash code of a long value.
|
static int |
valueHash(java.lang.Object obj)
Return the value hash of an object
|
public static final java.lang.String MD5
public static final java.lang.String SHA1
public static final java.lang.String SHA256
public static final java.lang.String SHA512
public static java.lang.String hash(java.lang.String algorithm, java.lang.String s) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public static int valueHash(java.lang.Object obj)
Boolean.hashCode()
public static int hashCode(boolean bool)
public static int hashCode(double dbl)
public static int hashCode(float flt)
public static int hashCode(long lng)