public final class Hasher
extends java.lang.Object
MessageDigest
instance to aid calculating hash values more easily, and to
reuse a MessageDigest
instance.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SHA1_PROTOCOLL |
Modifier and Type | Method and Description |
---|---|
static Hasher |
getHasher(java.lang.String protocoll)
|
java.lang.String |
hash(java.lang.String data)
Calculates and returns a hash value.
|
public static final java.lang.String SHA1_PROTOCOLL
public java.lang.String hash(java.lang.String data)
data
- the data to be hashed in a String
.String
representation.public static Hasher getHasher(java.lang.String protocoll)
protocoll
- the name of the hash algorythm.Hasher
DSEException
- on initialization failure.