https://github.com/wyhaya/aef
An encrypted file archiver
https://github.com/wyhaya/aef
aes-gcm archiver command-line compress file-encryption rust
Last synced: 5 months ago
JSON representation
An encrypted file archiver
- Host: GitHub
- URL: https://github.com/wyhaya/aef
- Owner: wyhaya
- License: mit
- Created: 2021-06-17T08:37:41.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-31T06:55:16.000Z (8 months ago)
- Last Synced: 2024-11-13T02:49:52.463Z (5 months ago)
- Topics: aes-gcm, archiver, command-line, compress, file-encryption, rust
- Language: Rust
- Homepage:
- Size: 18.6 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aef [](https://github.com/wyhaya/aef/actions) [](https://crates.io/crates/aef)
`aef` is an encrypted file archiver, it uses `AES-256-GCM` to fully encrypt data and ` scrypt ` to prevent brute force data cracking. It also allows the use of `Brotli` to reduce the size of archived files.
> [!WARNING]
> * aef has not undergone any security check
> * Disruptive changes may occur prior to `1.0`## Features
* Use `AES-256-GCM` for complete data encryption
* Use `scrypt` to prevent brute force cracking
* Use `brotli` compression file Optional
* Support cross-platform `Linux` `macOS` `Windows`
* Support the encryption `directory` and `file`
* Support file permissions Unix## Install
[Download](https://github.com/wyhaya/aef/releases) the binary from the release page
Or use `cargo` to install
```bash
cargo install aef
```## Usage
#### Encryption
```bash
aef -i ./files/ -o ./dist.aef
```#### Decryption
```bash
aef -i ./dist.aef -o ./files/ -d
```#### Password
By default you will enter your password in the terminal, if you don't want to enter it manually you can use the `-p` option```bash
aef -i ./files/ -o ./dist.aef -p 123456
```#### Compress
`aef` support the use of `brotli` to compress files, you can use the `-c` option to specify the compression level
```bash
# Compress at the fastest speed
aef -i ./files -o ./dist.aef -c# Adjust the compress quality
aef -i ./files -o ./dist.aef -c 8
```* Fastest: `-c 0`
* Best: `-c 11`#### Help
```bash
aef --help
``````bash
Usage: aef [OPTIONS]Options:
-i, --input File | Stdin
-o, --output File | Stdout
-p, --password Set password
-d, --decrypt Decrypt file
-c, --compress [] Set compression level [0 - 11]
--scrypt-log-n Set scrypt params [default: 20]
--scrypt-r Set scrypt params [default: 8]
--scrypt-p Set scrypt params [default: 1]
-h, --help Print help
-V, --version Print version
```