
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
native-keyvault
Advanced tools
A simple cross platform native keyvault for storing secrets securely on your local machine. Supports Windows, macOS, and Linux with native encryption methods and optional fallback.
A cross-platform Node.js credential storage library that securely stores passwords using native OS credential managers with an encrypted fallback option.
save(), get(), and delete()pnpm add native-keyvault
Linux only: Requires libsecret-tools for native credential storage:
sudo apt-get install libsecret-tools
macOS and Windows have native support built into the OS.
import { CredentialStore } from 'native-keyvault'
const store = new CredentialStore('my-app')
store.save('user@example.com', 'my-secure-password')
const password = store.get('user@example.com')
console.log(password)
store.delete('user@example.com')
If you want to always use encrypted file storage instead of the native credential manager:
const store = new CredentialStore('my-app', { fallback: true })
new CredentialStore(service, options?)Creates a new credential store instance.
service (string): Identifier for your applicationoptions.fallback (boolean): Force fallback storage instead of native. Default: falsesave(account, password)Saves a credential.
account (string): Account identifier (e.g., email, username)password (string): Password to storeget(account): string | nullRetrieves a credential.
account (string): Account identifiernull if not founddelete(account)Deletes a credential.
account (string): Account identifier to deleteNative Storage (default): Uses OS-specific credential managers
security commandcmdkeysecret-toolFallback Storage: If native storage fails or is unavailable
~/.cache/{service}/credentials.json~/.cache/{service}/key.bin with restricted permissions (600)MIT
FAQs
A simple cross platform native keyvault for storing secrets securely on your local machine. Supports Windows, macOS, and Linux with native encryption methods and optional fallback.
The npm package native-keyvault receives a total of 1 weekly downloads. As such, native-keyvault popularity was classified as not popular.
We found that native-keyvault demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.