{"id":19580220,"url":"https://github.com/xclud/dart_sec","last_synced_at":"2026-05-11T12:37:09.776Z","repository":{"id":63712063,"uuid":"570087551","full_name":"xclud/dart_sec","owner":"xclud","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-03T15:07:30.000Z","size":15,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-26T02:11:36.607Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/sec","language":"Dart","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/xclud.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-11-24T10:03:59.000Z","updated_at":"2025-04-03T15:07:33.000Z","dependencies_parsed_at":"2024-11-11T07:26:41.960Z","dependency_job_id":"8e0d91a4-e365-413a-b166-c4ddf149e0c6","html_url":"https://github.com/xclud/dart_sec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xclud/dart_sec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_sec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_sec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_sec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_sec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xclud","download_url":"https://codeload.github.com/xclud/dart_sec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fdart_sec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32894945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-11T07:24:11.810Z","updated_at":"2026-05-11T12:37:09.757Z","avatar_url":"https://github.com/xclud.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![package publisher](https://img.shields.io/pub/publisher/sec.svg)](https://pub.dev/packages/sec/publisher)\n\nImplementation of `Standards for Efficient Cryptography (SEC)` including SECP256K1 and SECP256R1.\n\n## Features\n\n* PublicKey Recovery Id Calculation.\n* Secp160r1\n* Secp160r2\n* Secp192k1\n* Secp192r1\n* Secp224k1\n* Secp224r1\n* Secp256k1 (Commonly used in cryptocurrencies)\n* Secp256r1\n* Secp384r1\n* Secp521r1\n* Brainpoolp160r1\n* Brainpoolp160t1\n* Brainpoolp192r1\n* Brainpoolp192t1\n* Brainpoolp224r1\n* Brainpoolp224t1\n* Brainpoolp256r1\n* Brainpoolp256t1\n* Brainpoolp320r1\n* Brainpoolp320t1\n* Brainpoolp384r1\n* Brainpoolp384t1\n* Brainpoolp512r1\n* Brainpoolp512t1\n* Gostr3410_2001_cryptopro_a\n* Gostr3410_2001_cryptopro_b\n* Gostr3410_2001_cryptopro_c\n* Gostr3410_2001_cryptopro_xcha\n* Gostr3410_2001_cryptopro_xchb\n* Prime192v1\n* Prime192v2\n* Prime192v3\n* Prime239v1\n* Prime239v2\n* Prime239v3\n* Prime256v1\n* Secp112r1\n* Secp112r2\n* Secp128r1\n* Secp128r2\n* Secp160k1\n\n## Getting started\n\n```yaml\ndependencies:\n  sec: any\n```\n\n## Usage\n\n```dart\nimport 'package:sec/sec.dart';\nimport 'package:convert/convert.dart';\n```\n\n```dart\nfinal privateKey = BigInt.parse(\n'c57304b3a53051600d7035fc593083810a8fa250e6a7a2803cf6a0f3c2750503',\nradix: 16,\n);\n\nfinal publicKey = Secp256k1.createPublicKey(privateKey, true);\nfinal pkHex = hex.encode(publicKey);\nprint('Public Key: $pkHex');\n\n// 03566b04ce8459c8e2f95691ff17625a0b84773ecd2b65f597c05bd90fa8609ed6\n```\n\n## Additional information\n\nThis package uses [pointycastle](https://pub.dev/packages/pointycastle).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxclud%2Fdart_sec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxclud%2Fdart_sec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxclud%2Fdart_sec/lists"}