|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object users.MD5
An class for generating a securly encoded passwort string using the MD5 algorithm
Constructor Summary | |
MD5()
|
Method Summary | |
static String |
byteToHex(byte[] b)
Converts a byte-Array to hexadecimal string |
static byte[] |
digestBytes(byte[] bData)
Retrieves a byte sequence representing the MD5 digest of the specified byte sequence. |
static byte[] |
digestString(String sPhrase)
Retrieves a byte sequence that represents the MD5 digest string. |
static String |
encodeString(String sPhrase)
Retrieves a hexadecimal character sequence representing the MD5 digest of the specified character sequence by using ISO-8859-1 encoding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MD5()
Method Detail |
public static final String encodeString(String sPhrase) throws RuntimeException
sPhrase
- the string to encode.
RuntimeException
- if an MD5 digest algorithm is not available through the java.security.MessageDigest spipublic static String byteToHex(byte[] b)
b
- the byte[] to be converted
public static byte[] digestString(String sPhrase) throws RuntimeException
sPhrase
- the string to digest.
RuntimeException
- if an MD5 digest algorithm is not available through the java.security.MessageDigest spipublic static final byte[] digestBytes(byte[] bData) throws RuntimeException
bData
- the data to digest.
RuntimeException
- if an MD5 digest algorithm is not available through the java.security.MessageDigest spi
|
SalesPoint Framework v3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |