{"id":19102677,"url":"https://github.com/kayrus/putty","last_synced_at":"2025-08-20T16:31:16.882Z","repository":{"id":56269238,"uuid":"189154313","full_name":"kayrus/putty","owner":"kayrus","description":"Go package to parse PuTTY private key formats","archived":false,"fork":false,"pushed_at":"2024-07-16T17:17:02.000Z","size":48,"stargazers_count":24,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-11T12:24:53.370Z","etag":null,"topics":["golang","golang-package","ppk","private-key","putty","ssh-keys"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kayrus.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-05-29T05:08:59.000Z","updated_at":"2024-09-12T13:03:24.000Z","dependencies_parsed_at":"2024-05-21T13:01:12.737Z","dependency_job_id":null,"html_url":"https://github.com/kayrus/putty","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayrus%2Fputty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayrus%2Fputty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayrus%2Fputty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayrus%2Fputty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kayrus","download_url":"https://codeload.github.com/kayrus/putty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230438185,"owners_count":18225870,"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":["golang","golang-package","ppk","private-key","putty","ssh-keys"],"created_at":"2024-11-09T03:56:46.430Z","updated_at":"2024-12-19T13:07:10.810Z","avatar_url":"https://github.com/kayrus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# putty\n\n![Test Status](https://github.com/kayrus/putty/actions/workflows/go-test.yml/badge.svg)\n![Linter Status](https://github.com/kayrus/putty/actions/workflows/golangci-lint.yml/badge.svg)\n\nGo package to parse PuTTY private key formats. Go 1.23 or above is required.\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/kayrus/putty\"\n)\n\nfunc main() {\n\tvar privateKey interface{}\n\n\t// read the key\n\tputtyKey, err := putty.NewFromFile(\"test.ppk\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// parse putty key\n\tif puttyKey.Encryption != \"none\" {\n\t\t// If the key is encrypted, decrypt it\n\t\tprivateKey, err = puttyKey.ParseRawPrivateKey([]byte(\"testkey\"))\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t} else {\n\t\tprivateKey, err = puttyKey.ParseRawPrivateKey(nil)\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t}\n\n\tlog.Printf(\"%+#v\", privateKey)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayrus%2Fputty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkayrus%2Fputty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayrus%2Fputty/lists"}