๐ FileEncryptor
A Basic and secure command-line tool to encrypt and decrypt files using libsodium via the sodiumoxide
Rust crate.
โจ Features
- ๐ Password-based file encryption using
secretbox
(XSalsa20 + Poly1305) - ๐ง Salted password hashing with
pwhash
(Argon2) - ๐ Symmetric encryption & decryption
- โ Ergonomic CLI interface
- ๐งช 100% test coverage (including edge cases)
TODO
- [] Add secure password prompt (rpassword)
- [] Add optional config file support
- [] Add file overwrite confirmation
- [] Add streaming support for large files
๐ Installation
๐ฆ Usage
Encrypt a file
Decrypt a file
Flags
๐ Security
- Uses pwhash::derive_key (Argon2) with a random salt for each file.
- Authenticated encryption with secretbox (XSalsa20 + Poly1305).
- Salt and nonce are prepended to the ciphertext.
Never share your password. If you lose it, your data cannot be recovered.
๐ License
MIT ยฉ 2025 Milad