{"id":21957636,"url":"https://github.com/bitbeans/naclkeys","last_synced_at":"2026-03-16T16:35:30.963Z","repository":{"id":32481277,"uuid":"36061544","full_name":"bitbeans/NaclKeys","owner":"bitbeans","description":"Library to generate libsodium-net compatible KeyPair`s","archived":false,"fork":false,"pushed_at":"2016-01-02T06:30:33.000Z","size":1200,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-05T10:03:11.485Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bitbeans.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-22T08:37:43.000Z","updated_at":"2015-09-07T19:21:30.000Z","dependencies_parsed_at":"2022-08-24T22:40:44.658Z","dependency_job_id":null,"html_url":"https://github.com/bitbeans/NaclKeys","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbeans%2FNaclKeys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbeans%2FNaclKeys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbeans%2FNaclKeys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitbeans%2FNaclKeys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitbeans","download_url":"https://codeload.github.com/bitbeans/NaclKeys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235941487,"owners_count":19069659,"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":[],"created_at":"2024-11-29T08:55:01.507Z","updated_at":"2026-03-16T16:35:30.924Z","avatar_url":"https://github.com/bitbeans.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NaclKeys [![Build status](https://img.shields.io/appveyor/ci/bitbeans/NaclKeys.svg?style=flat-square)](https://ci.appveyor.com/project/bitbeans/naclkeys) [![Build Status](https://img.shields.io/travis/bitbeans/NaclKeys.svg?style=flat-square)](https://travis-ci.org/bitbeans/NaclKeys) [![NuGet Version](https://img.shields.io/nuget/v/NaclKeys.svg?style=flat-square)](https://www.nuget.org/packages/NaclKeys/) [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat-square)](https://github.com/bitbeans/NaclKeys/blob/master/LICENSE.md)\nSmall library to generate libsodium-net compatible KeyPair`s and encoded public keys based on predefined formats.\n\n## Code Status\n\nNaclKeys was subjected to a source code audit carried out by  [Paragon Initiative Enterprises, LLC](https://paragonie.com/).\n\nFinal report (Web): [Audit-Report NaclKeys 07.2015](https://paragonie.com/audit/2QB0t20PnxjevVA0)\nFinal report (PDF): [Audit-Report NaclKeys 07.2015](https://paragonie.com/static/audit-reports/2015/07/NaclKeys.pdf)\n\n## Installation\n\nThere is a [NuGet package](https://www.nuget.org/packages/NaclKeys/) available.\n\n## Supported Formats\n\n### CurveLock Format\nProject: [CurveLock](https://github.com/adamcaudill/CurveLock)\n#### Methods\n```csharp\npublic static KeyPair GenerateCurveLockKeyPair(string email, string password)\n```\n```csharp\npublic static string EncodeCurveLockPublicKey(byte[] publicKey)\n```\n```csharp\npublic static byte[] DecodeCurveLockPublicKey(string encodedPublicKey)\n```\n#### Example\n```csharp\nconst string email = \"someone@example.com\";\nconst string password = \"magnetometers payee induce tangibly polonaises unrestricted oilfield\";\nvar keyPair = KeyGenerator.GenerateCurveLockKeyPair(email, password);\nvar encodedPublicKey = KeyGenerator.EncodeCurveLockPublicKey(keyPair.PublicKey);\n```\n\u003e MrDDGk7GYEypr93LMgJn4Av3c98fWamRKvAKbjrTEvjtz5kRxj\n\n### miniLock Format\nProject: [miniLock](https://github.com/kaepora/miniLock)\n#### Methods\n```csharp\npublic static KeyPair GenerateMiniLockKeyPair(string email, string password)\n```\n```csharp\npublic static string EncodeMiniLockPublicKey(byte[] publicKey)\n```\n```csharp\npublic static byte[] DecodeMiniLockPublicKey(string encodedPublicKey)\n```\n#### Example\n```csharp\nconst string email = \"someone@example.com\";\nconst string password = \"magnetometers payee induce tangibly polonaises unrestricted oilfield\";\nvar keyPair = KeyGenerator.GenerateMiniLockKeyPair(email, password);\nvar encodedPublicKey = KeyGenerator.EncodeMiniLockPublicKey(keyPair.PublicKey);\n```\n\u003e Cz5bEJLKdSib9kWxkmskExaaLdRg8tVA2qsFBnfdQwkMe\n\n### bytejail Format\nProject: [bytejail](https://bytejail.com)\n#### Methods\n```csharp\npublic static KeyPair GenerateBytejailKeyPair(string userInputPartOne, string userInputPartTwo)\n```\n```csharp\npublic static string EncodeBytejailPublicKey(byte[] publicKey)\n```\n```csharp\npublic static byte[] DecodeBytejailPublicKey(string encodedPublicKey)\n```\n#### Example\n```csharp\nconst string email = \"someone@example.com\";\nconst string password = \"magnetometers payee induce tangibly polonaises unrestricted oilfield\";\nvar keyPair = KeyGenerator.GenerateBytejailKeyPair(email, password);\nvar encodedPublicKey = KeyGenerator.EncodeBytejailPublicKey(keyPair.PublicKey);\n```\n\u003e 2PNPvrfYAQxhaGYaAzsWTYgEzymmQZ37jG2vJThBJHDcY4SABnH\n\n##Helper\nIt`s also possible to recognize an identity format\n\n```csharp\npublic static KeyType TryRecognizeIdentityFormat(string encodedPublicKey, bool validate = true)\n```\n\n## More Examples\nsee [Unit Tests](https://github.com/bitbeans/NaclKeys/tree/master/Tests)\n\n## License\n[MIT](https://en.wikipedia.org/wiki/MIT_License)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitbeans%2Fnaclkeys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitbeans%2Fnaclkeys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitbeans%2Fnaclkeys/lists"}