common/src/main/java/HTTPClient/MD5.java
/**
     * Turns array of bytes into string representing each byte as
     * unsigned hex number.
     *
     * @param hash	array of bytes to convert to hex-string
     * @return	generated hex string
     */
Turns array of bytes into string representing each byte as
unsigned hex number.

@param hash      array of bytes to convert to hex-string
@return  generated hex string
Turns array of bytes into string representing each byte as unsigned hex number . @param hash array of bytes to convert to hex - string @return generated hex string
public static final String toHex(byte hash[])
    {
	StringBuffer buf = new StringBuffer(hash.length * 2);
	for (int idx=0; idx<hash.length; idx++)
	    buf.append(hex[(hash[idx] >> 4) & 0x0f]).append(hex[hash[idx] & 0x0f]);
	return buf.toString();
    }
public static final String toHex ( byte hash [ ] ) { StringBuffer buf = new StringBuffer ( hash . length * 2 ) ; for ( int idx = 0 ; idx < hash . length ; idx ++ ) buf . append ( hex [ ( hash [ idx ] >> 4 ) & 0x0f ] ) . append ( hex [ hash [ idx ] & 0x0f ] ) ; return buf . toString ( ) ; }
Turns array of bytes into string representing each byte as
 unsigned hex number.
Turns array of bytes into string representing each byte as unsigned hex number .