public static string ToHex(this byte[] data) { return String.Concat(Array.ConvertAll(data, x => x.ToString("X2"))).ToLower(); }