chacha20_poly1305 encryption CLI tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Avril fbba88a4c9
added README
4 years ago
src fix panic on invalid key sizes 4 years ago
.gitignore basic profiling 4 years ago
Cargo.lock fix panic on invalid key sizes 4 years ago
Cargo.toml encrypt, decrypt, keygen all work 4 years ago
README.md added README 4 years ago
TODO added todo 4 years ago
test.sh added test script 4 years ago

README.md

chacha20

A simple chacha20_poly1305 CLI encryption tool

Building

Requires Rust and Cargo to build. Run cargo build --release, the binary will be built to ./target/release/chacha20.

Testing

Run cargo test && cargo build && ./test.sh debug to test the program. Alternatively, run ./test.sh after building to test the release build's correctness.

Usage

Copies stdin to stdout while encrypting or decrypting with the stream cipher.

Modes

  • Encrypt - Encrypt stdin to stdout
  • Decrypt - Decrypt stdin to stdout
  • Keygen - Generate a random key and IV and print them to stdout

To see a more detailed explenation run chacha20 with no arguments.

Example

$ echo "Hello world!" | chacha20 e 2>keys.cck > output.cc20
$ chacha20 d $(cat keys.cck) < output.cc20
Hello world!

License

GPL'd with <3