/// <summary>
        /// Converts a byte to the Hex value
        /// </summary>
        /// <param name="byteArray">The byte array.</param>
        /// <returns></returns>
        public static string ToHex(byte[] byteArray)
        {
            StringBuilder hex = new StringBuilder(byteArray.Length * 2);

            foreach (byte b in byteArray)
            {
                hex.AppendFormat("{0} ", StringHelper.ToHex(b));
            }
            return(hex.ToString().Trim());
        }