All pastes #20472 Raw Edit

Anonymous

public text v1 · immutable
#20472 ·published 2005-08-19 21:42 UTC
rendered paste body
		private static String intToHexStr(UInt32[] ai)
		{
			String s = "";
         
			for(int i = 0; i < ai.Length; i++)
			{
				for(int j = 0; j < 32; j += 8)
				{
					UInt32 k = ai[i] >> j & 0xff;
					if(k < 16)
						s = s + "0" + k.ToString("x");
					else
						s = s + k.ToString("x");
				}
                
			}
            

			return s;
}