drools-eclipse/org.guvnor.eclipse.webdav/src/client/org/eclipse/webdav/internal/authentication/AuthorizationAuthority.java
protected String md5(String s) throws NoSuchAlgorithmException, UnsupportedEncodingException {
        MessageDigest md5 = MessageDigest.getInstance("MD5"); //$NON-NLS-1$
        byte[] hash = md5.digest(s.getBytes("UTF8")); //$NON-NLS-1$
        return HexConverter.toHex(hash);
    }
protected String md5(String s) throws NoSuchAlgorithmException, UnsupportedEncodingException {
        MessageDigest md5 = MessageDigest.getInstance("MD5"); //$NON-NLS-1$
        byte[] hash = md5.digest(s.getBytes("UTF8")); //$NON-NLS-1$
        return HexConverter.toHex(hash);
    }
Computes the MD5 hash value of the given <code>String</code> and
returns the result as a HEX <code>String</code>.

@param s
@return a HEX <code>String</code> containing the MD5 hash value of the
given <code>String</code>
@exception NoSuchAlgorithmException
@exception UnsupportedEncodingException