๐ English ยท ็ฎไฝไธญๆ ยท Website
A secure, cross-platform desktop account management tool built with Electron, React, and TypeScript.
๐ Repository: https://github.com/456wyc/KeyRing ยท ๐ Website: https://456wyc.github.io/KeyRing/
- ๐ Secure Storage: All data encrypted with AES using master password
- ๐ Master Password Protection: PBKDF2-based authentication with salt
- ๐ Master Password Management: Change, remove, or re-enable the master password at any time
- ๐พ Data Backup: Export/import backup functionality
- ๐ก๏ธ Local Storage: Completely offline, no cloud dependencies
- โ Custom Fields: Add any fields you need for each account
- ๐ท๏ธ Multi-Tag System: Support for multiple tags per account with filtering
- ๐ Copy to Clipboard: One-click copying of any field value
- โ๏ธ Edit Protection: Explicit edit mode to prevent accidental changes
- ๐ Smart Search: Search by account name and field content
- ๐ฑ Dual Layout Views: Switch between card and list view modes
- ๐ Random Password Generation: Customizable password generator
- โ๏ธ Custom Rules: Per-account password generation rules
- ๐๏ธ Password Visibility: Toggle password visibility
- ๐ฏ Smart Detection: Automatic password field recognition
- ๐ Bilingual Support: English/Chinese interface switching
- ๐จ Tag Colors: Consistent hash-based tag coloring
- ๐ฑ Responsive Design: Adapts to different screen sizes
- ๐ฅ๏ธ Cross-Platform: Works on Windows, macOS, and Linux
-
Clone the repository:
git clone https://github.com/456wyc/KeyRing.git cd KeyRing -
Install dependencies:
npm install
-
Run application:
npm run start
Or simply double-click
run.batfile (Windows)
npm run devThis will start both the Vite dev server and Electron in development mode.
If you encounter packaging errors (symlink permission issues), here are solutions:
- Use
npm run startorrun.batto run directly - Application works perfectly, just no installer package
- Run Command Prompt as Administrator
- Enable Developer Mode:
- Settings โ Update & Security โ For developers โ Developer mode
- Or modify configuration:
npm install electron-builder@latest npm run package:win
electron-builder downloads the Electron binary from GitHub while packaging. If the download fails (EOF / ERR_ELECTRON_BUILDER_CANNOT_EXECUTE), use the China mirror build:
npm run package:win:cnThis script uses npmmirror for the Electron binary and ELECTRON_BUILDER_BINARIES_MIRROR for winCodeSign / NSIS resources. Mirrors are also configured in package.json:
"electronDownload": { "mirror": "https://npmmirror.com/mirrors/electron/" }- Launch the app and create a master password
- Set a strong password (cannot be recovered, remember it!)
- Enter the main interface
- Click "Change Master Password" in the top-right corner
- Change: Verify current password, then set a new one (data is re-encrypted)
- Remove: Verify current password to disable password protection
- Enable: If protection was removed, set a new master password from the same dialog
- Click "Add Account" button
- Enter account name
- Add tags: Input tag names with autocomplete for existing tags
- Add/modify fields:
- Default fields: Username, Password, Email, URL
- Add any custom fields as needed
- Rename or delete fields
- Drag and drop to reorder
- Add Tags: Input tag names when editing accounts
- Tag Filtering: Click tag toggle button to show tag filter
- Multi-select Filter: Select multiple tags simultaneously
- Tag Colors: Each tag automatically gets consistent colors
- Display Control: Toggle tag visibility on/off
- Card View: Grid layout showing detailed account information
- List View: Table layout for quick browsing
- Layout Switch: Click grid/list icons in toolbar
- Random Passwords: Click settings icon next to fields
- Custom Rules: Length, character types, exclude characters
- Smart Detection: Automatically detect password fields
- Text Search: Use top search bar for names and field content
- Tag Filtering: Filter accounts by tags
- Combined Filtering: Use search and tag filters together
- Data Backup: Click "Backup & Restore" to export data
- Data Restore: Select backup file to import account data
- Security: Backup files are JSON format with metadata and version info
- Language Switch: Click language toggle in top-right corner
- Supported Languages: Simplified Chinese, English
- Interface Adaptation: Complete translation of all interface elements
- Lock: Click "Lock" button in top-right corner
- Auto Lock: Automatically locks when app closes
- Password Hide: Password fields hidden by default, click eye icon to show
- All data stored locally in
~/.keyringdirectory - Uses AES-256 encryption
- Master password hashed with PBKDF2 (100,000 iterations)
- Encryption keys securely derived and never stored in plain text
- No network dependencies, data never uploaded to cloud
key-ring/
โโโ src/ # React frontend source
โ โโโ components/ # UI components
โ โ โโโ AccountCard.tsx # Account card component
โ โ โโโ AccountManager.tsx # Main management interface
โ โ โโโ AccountListView.tsx # List view component
โ โ โโโ BackupRestore.tsx # Backup/restore component
โ โ โโโ TagInput.tsx # Tag input component
โ โ โโโ TagFilter.tsx # Tag filter component
โ โ โโโ ... # Other components
โ โโโ i18n/ # Internationalization
โ โ โโโ en.ts # English translations
โ โ โโโ zh.ts # Chinese translations
โ โ โโโ types.ts # Translation type definitions
โ โโโ styles/ # Style files
โ โโโ types.ts # TypeScript type definitions
โโโ electron/ # Electron main process
โ โโโ main.ts # Main process entry
โ โโโ preload.ts # Preload script
โ โโโ storage.ts # Encrypted storage
โโโ _doc/ # Project documentation
โโโ docs/ # GitHub Pages site (landing page)
โ โโโ index.html # Project landing page
โ โโโ screenshots/ # Screenshots used by the landing page
โโโ snapshots/ # Screenshots for README
โโโ dist/ # Build output
โโโ run.bat # Windows startup script
A project landing page is available under the docs/ folder. To publish it:
- Push this repository to GitHub
- Go to Settings โ Pages
- Set Source to Deploy from a branch, branch
main, folder/docs - The landing page will be available at https://456wyc.github.io/KeyRing/
The page supports bilingual (EN/ไธญๆ) switching, feature overview, and an interactive screenshot gallery.
Q: What if I forget my master password? A: Master password cannot be recovered. It's recommended to backup important account information regularly to other secure locations.
Q: Where is data stored?
A: Data is stored in the .keyring folder in your user home directory, encrypted.
Q: Why does packaging fail?
A: Windows symlink permission issues. Use npm run start to run directly.
Q: How to backup data? A: There are two backup methods:
- In-app Backup: Click "Backup & Restore" button to export JSON backup file
- Folder Backup: Copy
~/.keyringfolder to safe location (requires master password to decrypt)
Q: How to restore data? A: Use "Backup & Restore" feature to import previously exported JSON backup files. The system will automatically verify data integrity.
- English โ current document
- ็ฎไฝไธญๆ โ Chinese documentation
MIT License - see LICENSE file for details.





