Skip to content

Protobuf

2 operations. Call any of them with cyberchef_bake, or pre-load them with CYBERCHEF_TOOL_SURFACE=all.

Decodes any Protobuf encoded data to a JSON representation of the data using the field number as the field key.If a .proto schema is defined, the encoded data will be decoded with reference to the schema. Only one message instance will be decoded. Show Unknown FieldsWhen a schema is used, this option shows fields that are present in the input data but not defined in the schema.Show TypesShow the type of a field next to its name. For undefined fields, the wiretype and example types are shown instead.

  • Tool name: cyberchef_protobuf_decode
  • Input / output: ArrayBufferJSON
Argument Type Default
schema_proto_text text
show_unknown_fields boolean false
show_types boolean false

Encodes a valid JSON object into a protobuf byte array using the input .proto schema.

  • Tool name: cyberchef_protobuf_encode
  • Input / output: JSONArrayBuffer
Argument Type Default
schema_proto_text text