rsecure
Secure file encryption using pure Rust and AES 🔒.
Keep It Simple Stupid
Installation
Using cargo:
Locally:
Usage
Generate a new AES 256 key and save it to a file if you don't have one already:
# Or using openssl
[!WARNING] Saving the key in the same local filesystem were you save the encrypted files is not a good idea. Save the key in a secure location, like a
USB driveor a password manager. Or just save it in aroot owned directorywith strict permissions (will require sudo to use it).
This will create a file named
text_to_encrypt.txt.encin the same directory as the source file.
This will encrypt all the files inside the directory
/tmp/mydirectory/files/
This will decrypt the file named
text_to_encrypt.txt.encin the same directory as the source file.
This will decrypt all the files inside the directory
/tmp/mydirectory/files/
[!IMPORTANT] By default,
rsecurewill not delete the source plain files after encryption to avoid data loss. If you want to delete the source files after encryption, use-rflag.
This will delete all the original (plain text) files under
/tmp/rsecure/dirtoencrypt/. The program will prompt for confirmation before deleting the source files. JustPress Enter.
Local dev
Testing encryption and decryption:
for; do
|
done
#
License
rsecure is distributed under the terms of the GPL3 license.