English View source
Security
Security
CyberNotes includes robust security features: PIN or password unlock, offline recovery codes, auto-lock, privacy shield, and Caps Lock manager.
Unlock Method (Password or PIN)
Choosing a Method
- Go to Settings → Security
- Pick Unlock method: Password or PIN (4 to 8 digits)
- Enter and confirm the new secret (current one required to change it)
- Secrets are hashed with bcrypt before storage; reuse of the current secret is rejected
Recovery Code
Each lock secret should have a one-time recovery code:
- After saving a password or PIN with no code configured, a dialog shows the generated code
- Copy it somewhere safe away from this computer and confirm to continue
- Regenerate anytime from Settings → Security (old code stops working)
- Optional hint field, shown on the lock screen
- Forgot flow on the lock screen: enter the code, set a new secret; 5 wrong tries trigger a 30-second cooldown
Password Hashing
- bcryptjs (pure JavaScript)
- Salted hashing
- No plaintext storage
Lock Screen
When locked:
- Password required to unlock
- Notes are inaccessible
- Timer shows time since lock
Auto-Lock
Configuration
Automatically lock after inactivity:
| Setting | Range |
|---|---|
| Timeout | 1 minute to 24 hours |
| Disabled | 0 (auto-lock off) |
How It Works
- No keyboard/mouse activity detected
- Countdown reaches timeout
- Lock screen appears
- Password required to continue
Use Case
- Step away from computer
- Prevent unauthorized access
- Shared or public environments
Privacy Shield
What It Does
When the app is hidden or minimized:
- Screen shield activates
- Prevents shoulder surfing
- Hides note content from view
When It Activates
| Trigger | Action |
|---|---|
| Minimize | Shield activates |
| Hide to tray | Shield activates |
| Switch to another app | Shield activates |
Caps Lock Manager
What It Does
Monitors Caps Lock state in the editor and can:
- Turn Caps Lock off after a configurable keyboard-idle period (5 seconds to 24 hours)
- Show the active state and countdown/progress in the title bar
- Display a dismissible notice after automatic shutoff
- Play optional sound notifications
Sound Presets
| Preset | Description |
|---|---|
| Off | No sound |
| Click | Mechanical click |
| Beep | Cyber-beep |
| Chime | Digital chime |
| Glitch | Glitch blip |
Sound Scope
| Scope | Description |
|---|---|
| App | Sound only when CyberNotes focused |
| Global | Sound anytime Caps Lock changes |
Audio Technology
- Web Audio API synthesizer
- Zero external files required
- Pure JavaScript audio generation
Data Encryption
Storage
- SQL.js database stored locally
- Images in local app data
- No cloud transmission
- No server communication
What Stays Local
| Data | Location |
|---|---|
| Database | %APPDATA%\CyberNotes\cybernotes.db |
| Images | %APPDATA%\CyberNotes\images\ |
| Settings | SQL.js settings table |
| Password hash | SQL.js settings table |