Jump to content

Is it possible to store HexString in INI file


Recommended Posts

Posted

I need to use 5 Bytes Hex string as a key, Hex string as a Value. Normally data stored in INI as ASCII.

What can be the possibilities to store HEX String?

Posted

You could store it as what I call ASCII Hex.  You use 2 ASCII characters per byte to represent the value.  You can then use Scan From String or other string manipulations to convert that to a U64 or byte array.

Posted (edited)

image.png.841886e86f9c24179cb5c9ba6ace95a0.png

Here's an example of converting a text string to bytes to an "ASCII Hex" string.

Edited by Bryan

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.