/// <summary>
/// Byte array to Hexa decimal string
/// </summary>
/// <param name="bytes">byte array</param>
/// <returns>hexa decimal string</returns>
public static string BytesToHex(byte[] bytes)
{
string hex = BitConverter.ToString(bytes);
return hex.Replace("-", "");
}
/// <summary>
/// Byte array to Hexa decimal string
/// </summary>
/// <param name="bytes">byte array</param>
/// <param name="includeHyphen">bool include hyphen</param>
/// <returns>hexa decimal string</returns>
public static string BytesToHex(byte[] bytes, bool includeHyphen)
{
string hex = BitConverter.ToString(bytes);
return hex;
}