The keychain-store library provides a secure, modern interface for Electron and Node.js applications to manage sensitive data using the macOS Data Protection Keychain and native code-signing entitlements.
Key Points
- Utilizes the modern macOS Data Protection Keychain (SecItem API) instead of legacy file-based storage.
- Supports biometric authentication, including Touch ID, and optional iCloud Keychain synchronization for stored items.
- Restricts data access to applications with specific code-signing entitlements and declared access groups.
- Handles both UTF-8 strings and binary data (Uint8Array) with explicit account management for mutable and immutable items.
- Includes a companion Swift library for native macOS development, ensuring cross-language compatibility for shared data.