{"id":15699237,"url":"https://github.com/thangchung/branca-dotnet","last_synced_at":"2026-03-11T01:01:56.985Z","repository":{"id":138511600,"uuid":"170677589","full_name":"thangchung/branca-dotnet","owner":"thangchung","description":"Authenticated and encrypted API tokens using modern crypto ","archived":false,"fork":false,"pushed_at":"2019-02-14T11:11:11.000Z","size":12,"stargazers_count":6,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-09T02:41:12.659Z","etag":null,"topics":["api","dotnet-core","jwt","token-authetication","xchacha20-poly1305"],"latest_commit_sha":null,"homepage":"https://www.branca.io","language":"C#","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/thangchung.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}},"created_at":"2019-02-14T11:01:49.000Z","updated_at":"2021-01-10T18:25:11.000Z","dependencies_parsed_at":"2023-05-16T07:00:41.042Z","dependency_job_id":null,"html_url":"https://github.com/thangchung/branca-dotnet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thangchung/branca-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangchung%2Fbranca-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangchung%2Fbranca-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangchung%2Fbranca-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangchung%2Fbranca-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thangchung","download_url":"https://codeload.github.com/thangchung/branca-dotnet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangchung%2Fbranca-dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30364607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","dotnet-core","jwt","token-authetication","xchacha20-poly1305"],"created_at":"2024-10-03T19:39:04.541Z","updated_at":"2026-03-11T01:01:56.914Z","avatar_url":"https://github.com/thangchung.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Branca Tokens for .NET Core\n\nAuthenticated and encrypted API tokens using modern crypto.\n\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n\n## What?\n\n[Branca](https://github.com/tuupola/branca-spec) is a secure easy to use token format which makes it hard to shoot yourself in the foot. It uses IETF XChaCha20-Poly1305 AEAD symmetric encryption to create encrypted and tamperproof tokens. Payload itself is an arbitrary sequence of bytes. You can use for example a JSON object, plain text string or even binary data serialized by [MessagePack](http://msgpack.org/) or [Protocol Buffers](https://developers.google.com/protocol-buffers/).\n\n## Install\n\nInstall the library using .NET SDK.\n\n```bash\n$ dotnet restore\n$ dotnet run\n```\n\n## Usage\n\nToken payload can be any arbitrary data such as string containing an email\naddress. You also must provide a 32 byte secret key. The key is used for encrypting the payload.\n\nTODO\n\nYou can keep the token size small by using a space efficient serialization method such as [MessagePack](http://msgpack.org/) or [Protocol Buffers](https://developers.google.com/protocol-buffers/).\n\nTODO\n\n## Timestamp\n\nBranca token includes a timestamp when it was created. When decoding you can optionally pass a `ttl` parameter. Value is passed in seconds. Below example throws en exception if token is older than 60 minutes.\n\nTODO\n\n## Testing\n\nYou can run tests either manually or automatically on every code change.\n\n```bash\n$ dotnet test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email tuupola@appelsiini.net instead of using the issue tracker.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthangchung%2Fbranca-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthangchung%2Fbranca-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthangchung%2Fbranca-dotnet/lists"}