OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

openc2 message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Language Spec Comment: Serializing Binary values as Hex

OpenC2 Technical Committee,


Please consider the following change to the OpenC2 Language Specification



·         Within Section 3.1.5 “Serialization”, define a Hex representation of Binary values in accordance with  Section 8 of RFC 4648,  “The Base16, Base32, and Base64 Data Encodings”, https://tools.ietf.org/html/rfc4648

·         Within Section 3.4 “Type Definitions”, specify that the following types use Hex representation:

o   MAC-Addr

o   Request-Id

o   Hashes (md5, sha1, sha256)



Although the TC is chartered to develop “unambiguous machine to machine command and control messages”, there is interest within the TC in making messages readable by humans when serialized using the current JSON format.  Using Hex representation for some Binary values addresses the desire for human readability.

Note that Hash values are traditionally shown as Hex, whereas other types such as file attachments and X.509 certificates are traditionally shown as Base64.  The choice of which to use for a particular data type is arbitrary.  Base64 is the default, and Hex may be specified for specific types.

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]