/sfed

Simple file encryptor and decryptor written in Rust.

Primary LanguageRust

Simple File Encryptor and Decryptor

This Rust-written CLI tool allows the user to encrypt and decrypt files using a password. An AES-GCM-SIV key is derived from the user's password via the PBKDF2 algorithm, this key is used to encrypt another AES key which will be stored as a file. This way, the user can change their password without having to decrypt all the encrypted files first.

Usage

Create a new key:

sfed new-key <KEY_PATH>

Change key password:

sfed change-password <KEY_PATH>

Encrypt a file:

sfed encrypt <PLAIN_TEXT> <CIPHER_TEXT> <KEY_PATH>

Decrypt a file:

sfed decrypt <CIPHER_TEXT> <PLAIN_TEXT> <KEY_PATH>

Warning

This tool is not intended for practical use.