How crownss/nebula-seal works
nebula-seal is a small Rust CLI for password-based file encryption and decryption, including encrypted filenames. The main workflow parses options, reads and trims a password file, then processes inputs one by one using either encryption or decryption before writing (and syncing) each result. The single source file also implements versioned key derivation, authenticated encryption, and the encrypted-file parser. The README documents multi-file operation and legacy PBKDF2 support; the source excerpt confirms these behaviors, but all runtime components share one implementation path.
Main entry points: main.rs File operation loop
Components 11
CLI workflow
- Argument parsing
src/main.rs - Password loading
src/main.rs - File operation loop
src/main.rs
Cryptography
- Encryption workflow
src/main.rs - Decryption workflow
src/main.rs - Versioned key derivation
src/main.rs - AES-GCM encryption
src/main.rs - Encrypted-file parser
src/main.rs
Other components
- CLI user
- Input files
- Output files
Connections 13
- CLI user → Argument parsing: supplies options
README.md - Argument parsing → Password loading: selects password file
src/main.rs - Argument parsing → File operation loop: provides file options
src/main.rs - Password loading → File operation loop: provides password
src/main.rs - File operation loop → Input files: reads files
src/main.rs - File operation loop → Encryption workflow: calls for encryption
src/main.rs - File operation loop → Decryption workflow: calls for decryption
src/main.rs - Encryption workflow → Versioned key derivation: derives keys
src/main.rs - Encryption workflow → AES-GCM encryption: encrypts name and data
src/main.rs - Decryption workflow → Encrypted-file parser: parses encrypted bytes
src/main.rs - Encrypted-file parser → Versioned key derivation: requests keys
src/main.rs - Decryption workflow → AES-GCM encryption: authenticates and decrypts
src/main.rs - File operation loop → Output files: writes results
src/main.rs