EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Need help decoding X.509 field value

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#30638
Posted: 09/08/2014 16:15:16
by Charles DeWeese (Standard support level)
Joined: 04/17/2008
Posts: 52

What method should be used to decode a X.509 certificate field value using the following string encoding?

"\x00R\x00E\x00B\x00E\x00X\x00 \x01\x0C\x00R\x00 \x00s\x00.\x00r\x00.\x00o\x00."

I need to transform this encoded string into a WideString or UTF-8.

Thank you for your time and any help is greatly appreciated.
#30640
Posted: 09/08/2014 16:44:53
by Eugene Mayevski (EldoS Corp.)

Unfortunately we don't have a parser for this format.


Sincerely yours
Eugene Mayevski
#30642
Posted: 09/08/2014 17:24:09
by Charles DeWeese (Standard support level)
Joined: 04/17/2008
Posts: 52

Thank you for the update, would you happen to know the name for this type of text encoding?

I have seen this encoding used on quite a few X.509 certificates but its difficult to find anything more about it.
#30643
Posted: 09/08/2014 17:44:23
by Dmytro Bogatskyy (EldoS Corp.)

Hi,

Quote
"\x00R\x00E\x00B\x00E\x00X\x00 \x01\x0C\x00R\x00 \x00s\x00.\x00r\x00.\x00o\x00."

It is an UTF-16 string which was copied to ansi string and then special characters (like #0) were encoded. For example: "\x00R" -> #0'R' (Ansi) -> 'R' (UTF-16)

Reply

Statistics

Topic viewed 285 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!