Skip to content

Instantly share code, notes, and snippets.

@ianido
Last active December 12, 2019 00:03
Show Gist options
  • Save ianido/08e57970d3d0f87876f361432b2214ab to your computer and use it in GitHub Desktop.
Save ianido/08e57970d3d0f87876f361432b2214ab to your computer and use it in GitHub Desktop.
Byte Array to Hex
// This code is ready to run in https://dotnetfiddle.net/
// Message parser: https://neapay.com/online-tools/iso8583-message-parser.html
using System;
public class Program
{
public static void Main()
{
var mBytes = new byte[] {0,23,0,0,8,0,32,0,1,0,0,128,0,0,153,0,0,0,7,51,51,51,51,51,51,51,51};
string res = "";
foreach (byte b in mBytes)
res += b.ToString("X2");
Console.WriteLine(res);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment