4 releases

Uses new Rust 2021

0.2.2 Jul 14, 2022
0.2.1 May 9, 2022
0.2.0 Jun 18, 2021
0.1.0 Jun 17, 2021

#404 in Cryptography

26 downloads per month

MIT license

11KB
240 lines

aef GitHub Workflow Status Crates.io

Util for file encryption

Features

  • Encryption with AES-256-GCM
  • Use scrypt to prevent brute force cracking
  • Support for pipeline operations

Install

Download the binary from the release page

Or use cargo to install

cargo install aef

Use

Encryption

aef -i ./your.file -o ./your.aef

Decryption

aef -i ./yout.aef -o ./your.file -d

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

aef -i ./your.file -o ./your.aef -p 123456

Pipeline operation

If input/output is not specified, aef will read/write from stdin/stdout.

# Read from `stdin` and output to `stdout`
cat your.file | aef > your.aef

# Read from `file` and output to `stdout`
aef -i your.aef -d | > your.file

# Read from stdin and output to file
cat your.file | aef -o ./your.aef 

Example

Used in conjunction with the tar command

Encryption

tar -cf - ./dir | aef -o ./your.aef

Decryption

aef -i ./your.aef -d | tar -xf -

Dependencies

~4MB
~71K SLoC