{"id":18544726,"url":"https://github.com/131/ssh-keychain","last_synced_at":"2025-05-15T05:34:14.110Z","repository":{"id":65499018,"uuid":"88980026","full_name":"131/ssh-keychain","owner":"131","description":"RSA keychain (mosly)","archived":false,"fork":false,"pushed_at":"2017-04-23T15:09:54.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T10:06:52.527Z","etag":null,"topics":["keychain","rsa","ssh-agent"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/131.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}},"created_at":"2017-04-21T12:08:58.000Z","updated_at":"2017-04-21T14:47:36.000Z","dependencies_parsed_at":"2023-01-26T05:15:16.373Z","dependency_job_id":null,"html_url":"https://github.com/131/ssh-keychain","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/131%2Fssh-keychain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/131%2Fssh-keychain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/131%2Fssh-keychain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/131%2Fssh-keychain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/131","download_url":"https://codeload.github.com/131/ssh-keychain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254282578,"owners_count":22045126,"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":["keychain","rsa","ssh-agent"],"created_at":"2024-11-06T20:17:26.260Z","updated_at":"2025-05-15T05:34:14.084Z","avatar_url":"https://github.com/131.png","language":"JavaScript","readme":"\r\nssh-keychain is a RSA vault you can add, list and remove keys from.\r\n\r\n[![Build Status](https://travis-ci.org/131/ssh-keychain.svg?branch=master)](https://travis-ci.org/131/ssh-keychain)\r\n[![Coverage Status](https://coveralls.io/repos/github/131/ssh-keychain/badge.svg?branch=master)](https://coveralls.io/github/131/ssh-keychain?branch=master)\r\n[![Version](https://img.shields.io/npm/v/ssh-keychain.svg)](https://www.npmjs.com/package/ssh-keychain)\r\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)\r\n\r\nThis module is designed as a backend for [ssh-agent-js](https://github.com/131/ssh-agent-js), a nodejs SSH agent.\r\n\r\n\r\n# API\r\n```\r\nconst KeyChain = require('ssh-keychain');\r\nvar vault = new KeyChain(); //new empty vault\r\n\r\nvault.add_key( fs.readFileSync('some/rsa/key.pem', 'utf-8), 'mykeycomment');\r\n\r\n// vault.keys//list current keys in vault\r\n\r\nvault.sign(\"mykeycomment\" //or key fingerprint, new Buffer(\"SomePpayload to sign\"));\r\n```\r\n\r\n## add_key(PEM encoded key or binary DER [, optionnal key name])\r\nAdd a key in the vault, with an optionnal key name.\r\n\r\n## sign(fingerprint or key name, payload)\r\nSign the payload with the desired key\r\n\r\n## remove_key(fingerprint or key name)\r\nRemove the key from by its fingerprint (or key name) from the vault\r\n\r\n## remove_keys()\r\nRemove all keys from the vault\r\n\r\n\r\n\r\n# Credits\r\n* [131](https://github.com/131) author\r\n* node-rsa","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F131%2Fssh-keychain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F131%2Fssh-keychain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F131%2Fssh-keychain/lists"}