{"id":29311504,"url":"https://github.com/abecodes/gokystr","last_synced_at":"2025-07-07T08:15:04.397Z","repository":{"id":97065203,"uuid":"463932968","full_name":"abecodes/gokystr","owner":"abecodes","description":"A simple keystore for rsa keys","archived":false,"fork":false,"pushed_at":"2022-03-09T20:29:51.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T05:22:12.971Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abecodes.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":"2022-02-26T18:22:41.000Z","updated_at":"2022-02-26T18:25:07.000Z","dependencies_parsed_at":"2023-03-13T16:19:42.025Z","dependency_job_id":null,"html_url":"https://github.com/abecodes/gokystr","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/abecodes/gokystr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abecodes%2Fgokystr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abecodes%2Fgokystr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abecodes%2Fgokystr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abecodes%2Fgokystr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abecodes","download_url":"https://codeload.github.com/abecodes/gokystr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abecodes%2Fgokystr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264040975,"owners_count":23548077,"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":"2025-07-07T08:15:03.274Z","updated_at":"2025-07-07T08:15:04.380Z","avatar_url":"https://github.com/abecodes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :package: Gokystr\n\n**Gokystr** is a simple implementation of a filebased keystore for private keys.\n\nOn initialization the keystore reads the private keys from a folder and keeps them in memory.\n\nAdditional added keys can be written back to the file system, if enabled.\n\nThe ID for the key equals the filename minus the fileextension.\n\n## :computer: Example\n\n```go\npackage main\n\nimport \"github.com/abecodes/gokystr\"\n\nfunc main() {\n\tkystr, err := gokystr.New(\"/folder/with/keyfiles\")\n\n\t// Retrieving a key\n\tprvKey, err := kystr.PrivateKey(\"keyname\")\n\tpubKey, err := kystr.PublicKey(\"keyname\")\n\n\t// Adding a key\n\terr := kystr.Add(\"keyname\", *rsa.PrivateKey)\n\n\t// Removing a key\n\terr := kystr.Remove(\"keyid\")\n}\n\n```\n\n## :clipboard: Options\n\n| Option | Info | Default |\n| --- | --- | --- |\n| AcceptEmpty | If true, the keystore will not throw if the passed folder does not contain any keys | false |\n| NoWrite | If true, additional added keys will not be written to the filesystem | false |\n| SetKeyExt | Change the fileextension used to identify keyfiles | .pem |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabecodes%2Fgokystr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabecodes%2Fgokystr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabecodes%2Fgokystr/lists"}