| Crates.io | file_encryptor |
| lib.rs | file_encryptor |
| version | 0.1.5 |
| created_at | 2025-05-26 10:24:45.566063+00 |
| updated_at | 2025-05-26 11:00:57.072812+00 |
| description | A simple libsodium-based file encryption/decryption CLI |
| homepage | |
| repository | https://github.com/miladtsx/cipher_file |
| max_upload_size | |
| id | 1689313 |
| size | 25,240 |
A Basic and secure command-line tool to encrypt and decrypt files using libsodium via the sodiumoxide Rust crate.
๐ 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)
cargo install file_encryptor
file_encryptor -e -i plaintext.txt -o encrypted.bin -p "your_password"
file_encryptor -d -i encrypted.bin -o decrypted.txt -p "your_password"
Usage: file_encryptor [OPTIONS] --input <INPUT> --output <OUTPUT> --password <PASSWORD>
Options:
-i, --input <INPUT> Input file path
-o, --output <OUTPUT> Output file path
-p, --password <PASSWORD> Password for encryption/decryption
-e, --encrypt Encrypt the file
-d, --decrypt Decrypt the file
-h, --help Print help
-V, --version Print version
Never share your password. If you lose it, your data cannot be recovered.
MIT ยฉ 2025 Milad