Source/CSBackend/Platform/Android/Main/Java/com/chilliworks/chillisource/core/HashMD5.java
/**
	 * Generate an MD5 hash as a hexadecimal string
	 * 
	 * @author S Downie
	 * 
	 * @param Data to hash
	 * 
	 * @return Hashed data as hex
	 */
Generate an MD5 hash as a hexadecimal string

@author S Downie

@param Data to hash

@return Hashed data as hex
Generate an MD5 hash as a hexadecimal string @author S Downie @param Data to hash @return Hashed data as hex
public static String generateHex(byte[] in_data)
	{
		byte[] preHex = generate(in_data);
		StringBuilder sb = new StringBuilder(2 * preHex.length);
		for(byte b : preHex)
		{
			sb.append(String.format("%02x", b&0xff));
		}
		return sb.toString();
	}
public static String generateHex ( byte [ ] in_data ) { byte [ ] preHex = generate ( in_data ) ; StringBuilder sb = new StringBuilder ( 2 * preHex . length ) ; for ( byte b : preHex ) { sb . append ( String . format ( "%02x" , b & 0xff ) ) ; } return sb . toString ( ) ; }
Generate an MD5 hash as a hexadecimal string
Generate an MD5 hash as a hexadecimal string
//converting byte array to Hexadecimal String