Decode protobuf

I have an encrypted coding piece of protobuf. I want to decode the above code.

syntax = "proto2";
message SearchResponse {
  message Result {
    required string url = 1;
    optional string title = 2;
    repeated string snippets = 3;
  }
  repeated Result result = 1;
}
message SearchRequest {
  required string query = 1;
  optional int32 page_number = 2;
  optional int32 result_per_page = 3;
}
SearchRequest:
"0a06656c697869721009" = [{:string, 1, "elixir"}, {:int32, 2, 9}}]
"0a0767736b796e65741001180f" = [{:string, 1, "elixir"}, {:int32, 2, 1}, {:int32, 3, 15}]
SearchResponse:
"0a670a4268747470733a2f2f646576656c6f706572732e676f6f676c652e636f6d2f70726f746f636f6c2d627566666572732f646f63732f707974686f6e7475746f7269616c121152656164696e672041204d6573736167651a04486168611a03576f701a03576f770a5e0a33687474703a2f2f7777772e63706c7573706c75732e636f6d2f7265666572656e63652f637374646c69622f737472746f756c2f1227436f6e7665727420737472696e6720746f20756e7369676e6564206c6f6e6720696e7465676572" = [{:repeat, 1, [
    [
        {:string, 1, "https://developers.google.com/protocol-buffers/docs/pythontutorial"},
        {:string, 2, "Reading A Message"},
        {:repeat, 3, ["Haha", "Wop", "Wow"]}
    ],
    [
        {:string, 1, "http://www.cplusplus.com/reference/cstdlib/strtoul/"},
        {:string, 2, "Convert string to unsigned long integer"}
    ],
]}]

How can i do it… Please help me… thank all

Encryption means that someone does not want you to know what is in the message.
To help you, we would need to know 2 basic things:

  1. The encryption algorithm used
  2. The key the algorithm used to encrypt the data

Depending on the algorithm used, step 2 make range from a couple of hours to the theoretical heat death of the universe…

If you really want to decrypt this I suggest you first find which algorithm was used.

2 Likes

yes. thank you so much. I finished it