sdy623 / EasyProtobuf

A easy tool for protobuf related operations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EasyProtobuf

A easy tool for protobuf related operations.

Made by miHomo Software

What can it do?

  • Protobuf
    • Convert Protobuf from JSON
    • Convert Base64 / HEX Protobuf to JSON
    • Unknown Fields (not defined in your proto) detection
  • RSA
    • Basic RSA Encrypt / Decrypt / Sign / Verify
    • Convert RSA Keys through different formats (including Private -> Public)
    • query_cur_region decryption & generation
  • More Dedicated Applications
    • MT19937 XOR Key Generate
    • Ec2b decrypt dispatchSeed -> dispatchKey
  • Simple Tasks
    • Convert bytes in Base64 & HEX
    • XOR Decrypt data

Requirements

  • .NET 6.0 Runtime
  • Network (for package restoration) (only during build process)

Build

  1. Give your protos a name as the protobuf_version, e.g. hk4e_3.6_live.

  2. Create a directory here with name of Protobuf-$(protobuf_version), e.g. Protobuf-hk4e_3.6_live.

  3. Put *.proto files inside. e.g. Protobuf-hk4e_3.6_live/.... Files under Protos sub-directory is also accepted.

  4. Start ./publish with protobuf_version, e.g:

    ./publish hk4e_3.6_live
  5. Check Output at EasyProtobuf Build

Usage

  • Build First
  • Start with ./run
  • Search demanded command in Handbook.md or just type the proto name
  • Profit

Notes

  • Don't directly paste query_cur_region content here! It's RSA encrypted.
    You can use dcurr and gencur command to do related options.

  • You can copy the built assets to anywhere, without neither original protos nor compiled code. But along with everything under the folder!

  • If your protos contains package option, please enter the namespace into config-<protobuf>.json. e.g. If your proto has:

    package miHomo.Protos;

    Then just use:

    {
      // ...
      "EasyProtobufProgram": {
        "ProtoRootNamespace": "MiHomo.Protos"
      }
    }

About

A easy tool for protobuf related operations.

License:MIT License


Languages

Language:C# 95.0%Language:PowerShell 2.6%Language:Shell 2.4%