• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
  • Himai Minh
  • Carey Brown
  • salvin francis

OCTET String and IA5String

Posts: 26
  • 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?

Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
Everybody! Do the Funky Monkey! Like this tiny ad!
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic