org.apache.catalina.util
public final class MD5Encoder extends Object
The 128 bit MD5 hash is converted into a 32 character long String. Each character of the String is the hexadecimal representation of 4 bits of the digest.
Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Method Summary | |
---|---|
String | encode(byte[] binaryData)
Encodes the 128 bit (16 bytes) MD5 into a 32 character String.
|
Parameters: binaryData Array containing the digest
Returns: Encoded MD5, or null if encoding failed