RustCrypt: Because even your files need a good, old-fashioned cloak-and-dagger routine! This Rust tool encrypts and decrypts files like a secret agent with a taste for code-breaking. Your data's new motto? 'Shhh, I'm encrypted!'" ππ΅οΈββοΈ
I used XChaCha20-Poly1305 since it uses streaming AEAD encryption to guarantee that the entire data stream has not been modified, corrupted or reordered. It is also simple and fast
./rustcrypt --help
βββββββ βββ βββ ββββββββ βββββββββ βββββββ βββββββ βββ βββ βββββββ βββββββββ
ββββββββ βββ βββ ββββββββ βββββββββ ββββββββ ββββββββ ββββ ββββ ββββββββ βββββββββ
ββββββββ βββ βββ ββββββββ βββ βββ ββββββββ βββββββ ββββββββ βββ
ββββββββ βββ βββ ββββββββ βββ βββ ββββββββ βββββ βββββββ βββ
βββ βββ βββββββββ ββββββββ βββ ββββββββ βββ βββ βββ βββ βββ
βββ βββ βββββββ ββββββββ βββ βββββββ βββ βββ βββ βββ βββ
Myst3ry
Version: 1.0.0
Usage: rustcrypt [OPTIONS] --input <INPUT> --output <OUTPUT> --size <SIZE> --mode <MODE>
Options:
-i, --input <INPUT> Input file path
-o, --output <OUTPUT> Output file path with key
-s, --size <SIZE> file size = [large, small]
-m, --mode <MODE> type of mode = [encrypt, decrypt]
-k, --key <KEY> Key to decrypt file
-n, --nonce <NONCE> nonce to decrypt file
-h, --help Print help
-V, --version Print version
./rustcrypt -i ~/Documents/test/notes -o ~/Documents/test/enc --size small --mode encrypt
βββββββ βββ βββ ββββββββ βββββββββ βββββββ βββββββ βββ βββ βββββββ βββββββββ
ββββββββ βββ βββ ββββββββ βββββββββ ββββββββ ββββββββ ββββ ββββ ββββββββ βββββββββ
ββββββββ βββ βββ ββββββββ βββ βββ ββββββββ βββββββ ββββββββ βββ
ββββββββ βββ βββ ββββββββ βββ βββ ββββββββ βββββ βββββββ βββ
βββ βββ βββββββββ ββββββββ βββ ββββββββ βββ βββ βββ βββ βββ
βββ βββ βββββββ ββββββββ βββ βββββββ βββ βββ βββ βββ βββ
3ncrypt3d succ3ssfully
Save the key and the nonce safely
----------------------------------------------------------
{
Key :"iFwHx2uLQ37uOwrobSQT6IXS3icURvxAyJfIKT3sKMA"
Nonce :"DlNlQoKttjX7EAdWBg4Sxp14duP381/w"
}
----------------------------------------------------------
./rustcrypt -i ~/Documents/test/enc -o ~/Documents/test/dec --size small --mode decrypt -k 55iN8J5Nywxh4m0tYUoYSC5GVYrn0MoUs+02qsSGk/g -n aTCrxrZEp4l4/f6gs5JunE83MXt5ZyQi
βββββββ βββ βββ ββββββββ βββββββββ βββββββ βββββββ βββ βββ βββββββ βββββββββ
ββββββββ βββ βββ ββββββββ βββββββββ ββββββββ ββββββββ ββββ ββββ ββββββββ βββββββββ
ββββββββ βββ βββ ββββββββ βββ βββ ββββββββ βββββββ ββββββββ βββ
ββββββββ βββ βββ ββββββββ βββ βββ ββββββββ βββββ βββββββ βββ
βββ βββ βββββββββ ββββββββ βββ ββββββββ βββ βββ βββ βββ βββ
βββ βββ βββββββ ββββββββ βββ βββββββ βββ βββ βββ βββ βββ
D3crpt3d succ3ssfully