{"id":13430978,"url":"https://github.com/atom/node-keytar","last_synced_at":"2025-09-29T02:32:13.637Z","repository":{"id":8239574,"uuid":"9682834","full_name":"atom/node-keytar","owner":"atom","description":"Native Password Node Module","archived":true,"fork":false,"pushed_at":"2022-12-12T11:01:01.000Z","size":854,"stargazers_count":1406,"open_issues_count":77,"forks_count":204,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-09-11T19:09:20.088Z","etag":null,"topics":["credential-storage","keychain","libsecret"],"latest_commit_sha":null,"homepage":"https://atom.github.io/node-keytar","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/atom.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":"2013-04-25T22:30:55.000Z","updated_at":"2025-09-10T09:40:01.000Z","dependencies_parsed_at":"2023-01-13T14:42:04.582Z","dependency_job_id":null,"html_url":"https://github.com/atom/node-keytar","commit_stats":null,"previous_names":[],"tags_count":78,"template":false,"template_full_name":null,"purl":"pkg:github/atom/node-keytar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom%2Fnode-keytar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom%2Fnode-keytar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom%2Fnode-keytar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom%2Fnode-keytar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atom","download_url":"https://codeload.github.com/atom/node-keytar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atom%2Fnode-keytar/sbom","scorecard":{"id":215073,"data":{"date":"2025-08-11","repo":{"name":"github.com/atom/node-keytar","commit":"deae59a488789f2cd4a8dba6c7e58665795804fe"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:115: update your workflow using https://app.stepsecurity.io/secureworkflow/atom/node-keytar/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:146: update your workflow using https://app.stepsecurity.io/secureworkflow/atom/node-keytar/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:148: update your workflow using https://app.stepsecurity.io/secureworkflow/atom/node-keytar/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/atom/node-keytar/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/atom/node-keytar/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/atom/node-keytar/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/atom/node-keytar/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/atom/node-keytar/codeql.yml/master?enable=pin","Warn: containerImage not pinned by hash: docker/arm64-cross-compile/Dockerfile:1: pin your Docker image by updating debian:buster to debian:buster@sha256:58ce6f1271ae1c8a2006ff7d3e54e9874d839f573d8009c20154ad0f2fb0a225","Warn: containerImage not pinned by hash: docker/armv7l-cross-compile/Dockerfile:1: pin your Docker image by updating debian:buster to debian:buster@sha256:58ce6f1271ae1c8a2006ff7d3e54e9874d839f573d8009c20154ad0f2fb0a225","Warn: containerImage not pinned by hash: docker/i386/Dockerfile:1: pin your Docker image by updating i386/debian:stretch to i386/debian:stretch@sha256:5be6b5853a13d413e4ef557ed1cbf6cf0ba4896769c7c37422fada653e0cdee5","Warn: downloadThenRun not pinned by hash: docker/arm64-cross-compile/Dockerfile:28","Warn: downloadThenRun not pinned by hash: docker/armv7l-cross-compile/Dockerfile:28","Warn: downloadThenRun not pinned by hash: docker/i386/Dockerfile:12","Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:57","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:64","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:65","Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:121","Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:157","Warn: npmCommand not pinned by hash: .github/workflows/codeql.yml:35","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 downloadThenRun dependencies pinned","Info:   0 out of   4 npmCommand dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned","Info:   0 out of   3 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v7.9.0 not signed: https://api.github.com/repos/atom/node-keytar/releases/59796291","Warn: release artifact v7.8.0 not signed: https://api.github.com/repos/atom/node-keytar/releases/58500438","Warn: release artifact v7.7.0 not signed: https://api.github.com/repos/atom/node-keytar/releases/42066422","Warn: release artifact v7.6.0 not signed: https://api.github.com/repos/atom/node-keytar/releases/40583669","Warn: release artifact v7.5.0 not signed: https://api.github.com/repos/atom/node-keytar/releases/40420374","Warn: release artifact v7.9.0 does not have provenance: https://api.github.com/repos/atom/node-keytar/releases/59796291","Warn: release artifact v7.8.0 does not have provenance: https://api.github.com/repos/atom/node-keytar/releases/58500438","Warn: release artifact v7.7.0 does not have provenance: https://api.github.com/repos/atom/node-keytar/releases/42066422","Warn: release artifact v7.6.0 does not have provenance: https://api.github.com/repos/atom/node-keytar/releases/40583669","Warn: release artifact v7.5.0 does not have provenance: https://api.github.com/repos/atom/node-keytar/releases/40420374"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"22 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-pq67-2wwv-3xjx","Warn: Project is vulnerable to: GHSA-8cj5-5rvv-wf4v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T01:29:45.560Z","repository_id":8239574,"created_at":"2025-08-17T01:29:45.560Z","updated_at":"2025-08-17T01:29:45.560Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277456645,"owners_count":25821006,"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","status":"online","status_checked_at":"2025-09-29T02:00:09.175Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["credential-storage","keychain","libsecret"],"created_at":"2024-07-31T02:00:59.484Z","updated_at":"2025-09-29T02:32:13.257Z","avatar_url":"https://github.com/atom.png","language":"C++","readme":"# keytar - Node module to manage system keychain\n\n[![Travis Build Status](https://travis-ci.org/atom/node-keytar.svg?branch=master)](https://travis-ci.org/atom/node-keytar)\n[![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/atom/node-keytar?svg=true)](https://ci.appveyor.com/project/Atom/node-keytar)\n[![Dependency Status](https://david-dm.org/atom/node-keytar.svg)](https://david-dm.org/atom/node-keytar)\n\nA native Node module to get, add, replace, and delete passwords in system's keychain. On macOS the passwords are managed by the Keychain, on Linux they are managed by the Secret Service API/libsecret, and on Windows they are managed by Credential Vault.\n\n## Installing\n\n```sh\nnpm install keytar\n```\n\n### On Linux\n\nCurrently this library uses `libsecret` so you may need to install it before running `npm install`.\n\nDepending on your distribution, you will need to run the following command:\n\n* Debian/Ubuntu: `sudo apt-get install libsecret-1-dev`\n* Red Hat-based: `sudo yum install libsecret-devel`\n* Arch Linux: `sudo pacman -S libsecret`\n\n## Building\n\n  * Clone the repository\n  * Run `npm install`\n  * Run `npm test` to run the tests\n\n## Supported versions\n\nEach release of `keytar` includes prebuilt binaries for the versions of Node and Electron that are actively supported by these projects. Please refer to the release documentation for [Node](https://github.com/nodejs/Release) and [Electron](https://electronjs.org/docs/tutorial/support) to see what is supported currently.\n\n## Bindings from other languages\n\n- [Rust](https://crates.io/crates/keytar)\n\n## Docs\n\n```javascript\nconst keytar = require('keytar')\n```\n\nEvery function in keytar is asynchronous and returns a promise. The promise will be rejected with any error that occurs or will be resolved with the function's \"yields\" value.\n\n### getPassword(service, account)\n\nGet the stored password for the `service` and `account`.\n\n`service` - The string service name.\n\n`account` - The string account name.\n\nYields the string password or `null` if an entry for the given service and account was not found.\n\n### setPassword(service, account, password)\n\nSave the `password` for the `service` and `account` to the keychain. Adds a new entry if necessary, or updates an existing entry if one exists.\n\n`service` - The string service name.\n\n`account` - The string account name.\n\n`password` - The string password.\n\nYields nothing.\n\n### deletePassword(service, account)\n\nDelete the stored password for the `service` and `account`.\n\n`service` - The string service name.\n\n`account` - The string account name.\n\nYields `true` if a password was deleted, or `false` if an entry with the given service and account was not found.\n\n### findCredentials(service)\n\nFind all accounts and password for the `service` in the keychain.\n\n`service` - The string service name.\n\nYields an array of `{ account: 'foo', password: 'bar' }`.\n\n### findPassword(service)\n\nFind a password for the `service` in the keychain. This is ideal for scenarios where an `account` is not required.\n\n`service` - The string service name.\n\nYields the string password, or `null` if an entry for the given service was not found.\n\n","funding_links":[],"categories":["C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatom%2Fnode-keytar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatom%2Fnode-keytar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatom%2Fnode-keytar/lists"}