{"id":18588543,"url":"https://github.com/racerxdl/protocrypt","last_synced_at":"2025-04-10T14:30:49.228Z","repository":{"id":57522144,"uuid":"252927791","full_name":"racerxdl/protocrypt","owner":"racerxdl","description":"Protobuf Transparent Encryption","archived":false,"fork":false,"pushed_at":"2020-04-12T18:44:43.000Z","size":41,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T22:42:14.226Z","etag":null,"topics":["aes","encrypted-data","encryption","golang","golang-library","library","protobuf","transparent"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/racerxdl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-04T06:39:42.000Z","updated_at":"2022-10-17T12:54:00.000Z","dependencies_parsed_at":"2022-08-26T23:41:26.214Z","dependency_job_id":null,"html_url":"https://github.com/racerxdl/protocrypt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racerxdl%2Fprotocrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racerxdl%2Fprotocrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racerxdl%2Fprotocrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racerxdl%2Fprotocrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/racerxdl","download_url":"https://codeload.github.com/racerxdl/protocrypt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248233946,"owners_count":21069493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aes","encrypted-data","encryption","golang","golang-library","library","protobuf","transparent"],"created_at":"2024-11-07T00:46:25.020Z","updated_at":"2025-04-10T14:30:48.856Z","avatar_url":"https://github.com/racerxdl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Coverage Status](https://coveralls.io/repos/github/racerxdl/protocrypt/badge.svg?branch=master)](https://coveralls.io/github/racerxdl/protocrypt?branch=master) ![Push Tests](https://github.com/racerxdl/protocrypt/workflows/Push%20Tests/badge.svg) [![DeepSource](https://static.deepsource.io/deepsource-badge-light-mini.svg)](https://deepsource.io/gh/racerxdl/protocrypt/?ref=repository-badge)\n\n# ProtoCrypt\n\nProtobuf Transparent Encryption\n\nThis library encrypts protobuf fields without knowing the underline model. It uses AES-256-GCM to do so.\n\nThe usage is pretty simple:\n\n```bash\ngo get github.com/racerxdl/protocrypt\n```\n\n```go\n\t// Assuming data is a byte slice with the proto content:\n\tpc := protocrypt.New(data)\n\tkey := []byte(\"passphrasewhichneedstobe32bytes!\")\n\terr = pc.EncryptFields([]uint{1,3}, key) // Encrypt fields 1 and 3\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tdata = pc.Serialize()\n\t// Data now contains the original protobuf with fields 1 and 3 encrypted.\n```\n\n```go\n\tpc := protocrypt.New(data)\n\tkey := []byte(\"passphrasewhichneedstobe32bytes!\")\n\terr = pc.Decrypt([]uint{1,3}, key)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tdata = pc.Serialize() // Data now contains the protobuf with fields 1 and 3 decrypted\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fracerxdl%2Fprotocrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fracerxdl%2Fprotocrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fracerxdl%2Fprotocrypt/lists"}