{"id":18676953,"url":"https://github.com/ecies/go","last_synced_at":"2025-04-12T20:45:43.291Z","repository":{"id":35088343,"uuid":"200906995","full_name":"ecies/go","owner":"ecies","description":" Elliptic Curve Integrated Encryption Scheme for secp256k1 in Golang","archived":false,"fork":false,"pushed_at":"2025-03-31T20:42:34.000Z","size":357,"stargazers_count":111,"open_issues_count":4,"forks_count":23,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-04T09:05:02.548Z","etag":null,"topics":["bitcoin","crypto","cryptocurrency","cryptography","ecies","elliptic-curve-cryptography","ethereum","golang","secp256k1"],"latest_commit_sha":null,"homepage":"https://ecies.org/go","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecies.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-06T18:50:12.000Z","updated_at":"2025-02-24T20:49:20.000Z","dependencies_parsed_at":"2023-01-15T13:35:48.433Z","dependency_job_id":"f57f8678-9bdb-4802-9c01-2b8519677218","html_url":"https://github.com/ecies/go","commit_stats":null,"previous_names":["ecies/eciesgo","l11r/eciesgo"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecies%2Fgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecies%2Fgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecies%2Fgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecies%2Fgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecies","download_url":"https://codeload.github.com/ecies/go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631693,"owners_count":21136559,"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":["bitcoin","crypto","cryptocurrency","cryptography","ecies","elliptic-curve-cryptography","ethereum","golang","secp256k1"],"created_at":"2024-11-07T09:31:53.352Z","updated_at":"2025-04-12T20:45:43.263Z","avatar_url":"https://github.com/ecies.png","language":"Go","readme":"# eciesgo\n\n![Go](https://github.com/ecies/go/actions/workflows/go.yml/badge.svg)\n[![GoDoc Widget](https://godoc.org/github.com/ecies/go?status.svg)](https://godoc.org/github.com/ecies/go)\n[![Go Report](https://goreportcard.com/badge/github.com/ecies/go)](https://goreportcard.com/report/github.com/ecies/go)\n\nElliptic Curve Integrated Encryption Scheme for secp256k1, written in Go with **minimal** dependencies.\n\nThis is the Go version of [ecies/py](https://github.com/ecies/py) with a built-in class-like secp256k1 API, you may go there for detailed documentation of the mechanism under the hood.\n\n## Install\n`go get github.com/ecies/go/v2`\n\nGo 1.22 is required since 2.0.10.\n\n\u003e ⚠️ Please use version 2.0.3 and later. It's much faster and safer.\n\n## Quick Start\n```go\npackage main\n\nimport (\n\tecies \"github.com/ecies/go/v2\"\n\t\"log\"\n)\n\nfunc main() {\n\tk, err := ecies.GenerateKey()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tlog.Println(\"key pair has been generated\")\n\n\tciphertext, err := ecies.Encrypt(k.PublicKey, []byte(\"THIS IS THE TEST\"))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tlog.Printf(\"plaintext encrypted: %v\\n\", ciphertext)\n\n\tplaintext, err := ecies.Decrypt(k, ciphertext)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tlog.Printf(\"ciphertext decrypted: %s\\n\", string(plaintext))\n}\n```\n\n## Benchmarks\nWith CGO:\n```\ngoos: linux\ngoarch: amd64\npkg: github.com/ecies/go/v2\ncpu: AMD Ryzen 7 5700G with Radeon Graphics         \nBenchmarkEncrypt-16        12250             98122 ns/op            5185 B/op         61 allocs/op\nBenchmarkDecrypt-16        23934             50046 ns/op            4097 B/op         46 allocs/op\n```\n\nWithout CGO:\n```\ngoos: linux\ngoarch: amd64\npkg: github.com/ecies/go/v2\ncpu: AMD Ryzen 7 5700G with Radeon Graphics         \nBenchmarkEncrypt-16        10000            112632 ns/op            5655 B/op         68 allocs/op\nBenchmarkDecrypt-16        14038             85641 ns/op            4725 B/op         56 allocs/op\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecies%2Fgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecies%2Fgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecies%2Fgo/lists"}