How krishanu-ghosh/chronolock works
ChronoLock is a Linux-oriented CLI secret manager. Its main workflow is setup—read plaintext secrets, encrypt them into a vault, and attempt filesystem locking—then daily use: load and decrypt the vault, verify a time-based password and clipboard-copy handshake, let the user select a secret, and copy it to the clipboard. The graph separates CLI orchestration, authentication, configuration and encryption, and user-facing output. Edges reflect shown calls or README-described interactions; unsampled behavior is not inferred.
Main entry points: main.go CLI entry · config.go Setup and load · ui.go Terminal prompts · clipboard.go Clipboard copy
Components 15
CLI workflow
- CLI entry
cmd/main.go
Authentication
- Time password
internal/auth/auth.go - Session handshake
internal/auth/auth.go
Vault management
- Vault path
internal/config/config.go - Setup and load
internal/config/config.go - Vault encryption
internal/config/crypto.go - Config models
internal/config/structs.go - Encrypted vault
- Immutable locking
internal/config/config.go
User interaction
- Terminal prompts
internal/ui/ui.go - Clipboard copy
internal/clipboard/clipboard.go
Other components
- User
- Plaintext input
- System clipboard
- chattr command
Connections 16
- User → CLI entry: runs
README.md - CLI entry → Vault path: gets path
cmd/main.go - CLI entry → Setup and load: sets up or loads
cmd/main.go - CLI entry → Terminal prompts: prompts and displays
cmd/main.go - Terminal prompts → CLI entry: returns selection
cmd/main.go - CLI entry → Time password: checks password
cmd/main.go - CLI entry → Session handshake: checks handshake
cmd/main.go - CLI entry → Clipboard copy: copies session and secret
cmd/main.go - Setup and load → Plaintext input: reads
internal/config/config.go - Setup and load → Vault encryption: encrypts or decrypts
internal/config/config.go - Setup and load → Encrypted vault: writes or reads
internal/config/config.go - Setup and load → Config models: uses data types
internal/config/config.go - Setup and load → Immutable locking: locks after setup
internal/config/config.go - Immutable locking → chattr command: runs
internal/config/config.go - Clipboard copy → System clipboard: writes data
internal/clipboard/clipboard.go - User → Terminal prompts: enters credentials and choice
README.md