cargo test
make test
cargo build --release
cargo build --release
cp target/release/slugify-filenames /usr/local/bin/
cp target/release/aes-256-cbc /usr/local/bin/
Slugifies a list of files or glob.
USAGE:
slugify-filenames [FLAGS] [target]...
FLAGS:
-i, --case-insensitive match glob case insensitive
-n, --dry-run
-h, --help Prints help information
-D, --include-hidden include hidden files
-r, --recursive recurse directories
-s, --silent
-V, --version Prints version information
-v, --verbose
ARGS:
<target>... a glob pattern [default: *]
- Performs aes-256-cbc encryption and decryption.
- PBKDF2 HMAC 256 for password-based key derivation with configurable number of cycles.
~/.rustic-toolz.yaml
Configure PBKDF2 iteration count for each key material type to custom numbers. Higher numbers means that keys will take longer to generate and are safer.
cycles:
key: 500
salt: 300
iv: 1200
NOTE: Keys created with a different combination of cycles cannot be derived again.
This step is optional if you want to provide a password in every encryption/decryption process.
-k
or --key-filename
Path to the key file where the key file will be stored.
-p
or --ask-password
Input the password safely with confirmation
-P
or --password
<password>
Input the password as command-line argument.
aes-256-cbc generate \
--key-filename ~/.personal-aes-key.yml \
--ask-password
-k
or --key-filename
Path to the key file where the key file used for encryption. Required unless
--ask-password
is used.
-p
or --ask-password
Input the encryption password safely with confirmation. Required unless
--password
is used.
-P
or --password
<password>
Input the encryption password as command-line argument. Required unless
--key-filename
is used.
-i
or --input-filename
<filename>
The plaintext file
-o
or --output-filename
<filename>
The file where the encrypted (cyphertext) will be stored. (pass the same as the input filename to replace the file)
aes-256-cbc encrypt \
--password 'I <3 Nickelback XOXO' \
--input-filename=Cargo.toml --output-filename=Cargo.toml.aes
aes-256-cbc decrypt \
--password 'I <3 Nickelback XOXO' \
--input-filename=Cargo.toml.aes --output-filename=Cargo.toml
aes-256-cbc encrypt \
--key-filename ~/.personal-aes-key.yml \
--input-filename=Cargo.toml --output-filename=Cargo.toml.aes
-k
or --key-filename
Path to the key file where the key file used for decryption. Required unless
--ask-password
is used.
-p
or --ask-password
Input the decryption password safely with confirmation. Required unless
--password
is used.
-P
or --password
<password>
Input the decryption password as command-line argument. Required unless
--key-filename
is used.
-i
or --input-filename
<filename>
The encrypted (cyphertext) file to be decrypted
-o
or --output-filename
<filename>
The file where the decrypted (plaintext) will be stored. (pass the same as the input filename to replace the file)
aes-256-cbc decrypt \
--key-filename ~/.personal-aes-key.yml \
--input-filename=Cargo.toml.aes --output-filename=Cargo.toml