Octet String: What is it?

前端 未结 7 2056
萌比男神i
萌比男神i 2020-12-24 11:39

I am starting to look into some network programming concepts for a project I am about to take over, and I keep running into this concept of an octet string. Can anyone out

相关标签:
7条回答
  • 2020-12-24 12:08

    octet string:

    it is representation of information in the limited 8 bit mode. During transferring the data from a point of electronics device to another point of device or any other device it need to convert them into package of minimum size. So it is used to divide the main data in small and system understandable. eg: So the integer 2680, in binary 101001111000 will be converted into that 7-bit format as follows:

    Remaining integer-------------------encoded bytes

    101001111000------------------------

    10100-------------------------------01111000

    0-----------------------------------11111000&00010100

    Which is represented as (120) (20) separately as decimal. then the divide 120 by 16 an store as result = 7 & reminder = 8 again divide 20 by 16 an store as result = 1 & reminder = 4

    the new form of number is 0X78 + 0X14

    here 78 & 14 are Octet String.

    to encode them to Normal stage: ((16*7)+8)*128^0+((16*1)+4)*128^1 = 2680

    I think it is the better explanation, but still i am searching more about it. Please help me to get about the alphabets. I think it depends on its ASCII value.

    0 讨论(0)
  • 2020-12-24 12:08

    A variable-length sequence of octets, as in Abstract Syntax Notation One (ASN.1), is referred to as an octet string.

    0 讨论(0)
  • 2020-12-24 12:09

    Octet is the term to mention 8 bit data in computer. Byte is the term to mention number of bit required to encode a string character in computer.

    Octet is always 8 bits. But Byte size varies depends on the hardware. Most of the system is supporting ASCII way of encoding strings. In those machines Byte size is eight bits. Some of the unicode supporting hardware is using 16bits as one Byte.

    0 讨论(0)
  • 2020-12-24 12:10

    Octet = byte.

    Octet string = sequence of bytes.

    Also, see Wikipedia.

    0 讨论(0)
  • 2020-12-24 12:10

    "Octet" is standardese for "8-bit byte". It's supposed to be a less ambiguous term compared to just "byte", because some platforms have bytes of different width (not sure if there are any are still remaining, but they used to exist).

    0 讨论(0)
  • 2020-12-24 12:16

    A group of 8 bits in a computer is called an octet. A byte is the same for most practical purposes, but does not equal 8 bits on all computer architectures. More can be found here .. Link

    0 讨论(0)
提交回复
热议问题