public static final String encodeString ( String string , String encoding ) throws RuntimeException { return StringConverter . byteToHex ( digestString ( string , encoding ) ) ; }
Retrieves a hexidecimal character sequence representing the MD5 digest of the specified character sequence using the specified encoding to first convert the character sequence into a byte sequence . If the specified encoding is null then ISO - 8859 - 1 is assumed