I'm trying to write some information to a special device that requires me to encode the string and I quote " an even number of bytes to write (1-32, base 10) "

The example string provided "DE AD BE EF CA FE" (works).
I have converted my string to decimal and from decimal to hexadecimal.

```
string TextToConvert = "Test Andrei";
            TextToConvert=ConvertStringToHex(TextToConvert, Encoding.UTF8);

            List<char> Chars = TextToConvert.ToCharArray().ToList();
            string CharValue = "";
            string secondHexConvert = "";
            foreach(char c in Chars)
            {
                CharValue+=Convert.ToInt32(c);
                secondHexConvert+=Convert.ToString(c, 16)+" ";
            }
            string hexValue = String.Format("{0:X}", CharValue)+" ";

```

I have found on internet a tool that converts to hexadecimal that works. The problem is that I can't figure what type of encoding is that. The site is this: <https://codebeautify.org/decimal-hex-converter>
from decimal "841011151163265110100114101105" to hex = "a9d741e82c990000000000000"