diff --git a/Cargo.lock b/Cargo.lock index 99472066..bf19b760 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -293,7 +293,7 @@ checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a" [[package]] name = "encrypted_fs" -version = "0.1.18" +version = "0.1.19" dependencies = [ "base64", "bincode", diff --git a/Cargo.toml b/Cargo.toml index e9f50ec1..a07f50b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "encrypted_fs" description = "An encrypted file system that mounts with FUSE on Linux. It can be used to create encrypted directories." -version = "0.1.18" +version = "0.1.19" edition = "2021" license = "MIT OR Apache-2.0" authors = ["Radu Marias"] diff --git a/README.md b/README.md index c7c261ea..d0dd303a 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,16 @@ Crate [encrypted_fs](https://crates.io/crates/encrypted_fs) on crates.io. # Usage -You can use it as a command line tool to mount an encrypted file system. or directly using the library to build your own binary. +You can use it as a command line tool to mount an encrypted file system. or directly using the library to build your own binary (for library, you can follow the [documentation](https://docs.rs/encrypted_fs/latest/encrypted_fs/)). -## Library +## Command Line Tool -For using the library, you can follow the [documentation](https://docs.rs/encrypted_fs/latest/encrypted_fs/). +## Installation -## Command Line Tool +You can install the encrypted file system binary using the following command: +```bash +cargo install encrypted_fs +``` To use the encrypted file system, you need to have FUSE installed on your system. You can install it by running the following command (or based on your distribution): ```bash @@ -37,7 +40,7 @@ This offers the possibility to change the password without needing to decrypt an This is done by decrypting the key with the old password and re-encrypting it with the new password. To change the password, you can run the following command: -``` +```bash encrypted_fs --change-password --data-dir DATA_DIR ``` Where `DATA_DIR` is the directory where the encrypted data is stored.\ @@ -47,7 +50,7 @@ It will prompt you to enter the old password and then the new password. You can specify the encryption algorithm and derive key hash rounds adding these arguments to the command line: -``` +```bash --cipher CIPHER --derive-key-hash-rounds ROUNDS ``` Where `CIPHER` is the encryption algorithm and `ROUNDS` is the number of rounds to derive the key hash.\ @@ -58,6 +61,6 @@ Default values are `ChaCha20` and `600_000` respectively. ### Log level You can specify the log level adding the `--log-level` argument to the command line. Possible values: `TRACE`, `DEBUG`, `INFO` (default), `WARN`, `ERROR`. -``` +```bash --log-level LEVEL ```