question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HEX parsing problem

See original GitHub issue

I’m trying to decode HEX string via your Web application

30820122300D06092A864886F70D01010105000382010F003082010A0282010100B77D41B8B39F2CD2881F44E22878E1D5F621D8D591F73B790AA61BFB7B0E8C2CE4F
43A8C6F5D97273DE644E86D1C24E6F01F129C31D97DBD4238D3DDE218BF1FEB59C26A1571F46325D47964DA5EB7ADDC9D32DF3402A1DF5F0921A52E51B8CA4A8FA139
F17136065270A7B5BBA155A4DBB871D79768C90445D25FBA72A76FD690625914F18E9411538B8EF97736B387EC36B83E3689F935C45F64D56B5A794F3764C017815DD
C6A85AA1FDE6371D05C2196CA6771A7D836CEB534609B312EF58E25846BA9B028C7E246BF0965543837C8A30447D2D985F704B5B05A36C851570BDC91E21930405D82
BE0847CE4F1020B28F5C6F72CFE61D5D2C6A90435ED9F10203010001

My HEX string has new lines. When I click on Decode button I’ve got wrong decoded message

image

but must be

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, May 29, 2017

Hex strings with an odd number of hex characters fail hex decoding and pass to Base64 decoding.

0reactions
lapo-luchinicommented, Aug 22, 2018

I don’t think spaces in the middle of a byte is a very common hex format usage, so I’d close this bug with no change regarding that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hexadecimal String parse error · Issue #155 · pdfcpu ... - GitHub
The hexadecimal string parser does not accept whitespace within the string. This is a bug and I will push this asap. On a...
Read more >
Golang parsing error with hex integer literal with underscores
I'm using the gradle sonarqube plugin 3.1.1 for a golang project. One file contained a hex integer literal with some underscores, ...
Read more >
python 3.6 - LARK parsing error for hex number - Stack Overflow
I try to parse hex number with: hex_number : "0x" HEXDIGIT+ and with 0xA as input, and it always throws me an error,...
Read more >
Hexadecimal parse error - Robot - UiPath Community Forum
', Hexadecimal value 0X00, is an invalid character Line 1 Position 1 I tried uninstalling Studio and reinstalling, still the problem remains.
Read more >
P1618QP - Isn't parsing hex file properly?
It appears that the P1618QP does not support hex files which have lines which aren't 16 bytes long. If you're compiling using a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found