This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OCTET String and IA5String

 
Howie Jiang
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are OCTET String and IA5String? If I have binary data of them? How can I get the original readable data?

Thanks
 
Michael Fitzmaurice
Ranch Hand
Posts: 168
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

How you would go about converting the binary back into human readable format depends on how it was converted to binary in the first place and what it represents. How did the binary you need to work with come to be in your possession? You need to know whether the binary represents and IA5 string or an octet string in the first place, then you can go about converting it from binary.

IA5 is a character set that is almost the same as ASCII - it uses 7 bytes. Octet strings use 8 bit bytes, as the name suggests.

Hope this helps

Michael
 
Yogesh Kodgule
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FYI,
for handling the Encoding and Decoding of the Asn1 types (as IA5String and OctetString belong to Asn1 types), varioud encode / decode methods are used.
Some of them are:
1) Basic Encoding Rules (BER)
2) Packed Encoding Rules (PER)
3) DER
4) OER
BER follows Tag-Length-Value (TLV) Format and is simple.PER follows a complicated steucture and hence is a complex process. But PER Encoded values are more compact as compared to BER.

Hope this may help you a bit!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic