|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.evolvica.util.Digester
A simple class which generates message digests for given strings/bytearrays.
Constructor Summary | |
Digester()
|
Method Summary | |
static java.lang.String |
getDigest(byte[] array)
Generates a digest which only contains alphanumeric characters and minus-signs (similiar to an UUID). |
static java.lang.String |
getDigest(java.lang.String s)
Generates a digest which only contains alphanumeric characters and minus-signs (similiar to an UUID). |
static byte[] |
getMD5Digest(byte[] byteArray)
Generates a MD5 digest for the given bytearray. |
static byte[] |
getMD5Digest(java.lang.String s)
Generates a MD5 digest for the given string. |
static byte[] |
getSHADigest(byte[] byteArray)
Generates a SHA-1 digest for the given string. |
static byte[] |
getSHADigest(java.lang.String s)
Generates a SHA-1 digest for the given string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Digester()
Method Detail |
public static final java.lang.String getDigest(byte[] array)
array
- array of bytes
public static final java.lang.String getDigest(java.lang.String s)
s
- string from which the digest should be generated
public static final byte[] getMD5Digest(java.lang.String s)
s
- string to be used for digest generation
public static final byte[] getMD5Digest(byte[] byteArray)
byteArray
- byte array to be used for digest generation
public static final byte[] getSHADigest(java.lang.String s)
s
- string to be used for digest generation
public static final byte[] getSHADigest(byte[] byteArray)
byteArray
- byte array to be used for digest generation
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |