Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/stefins/wdcrypt

πŸ”A CLI to encrypt all the files and folder in your current working directory.
https://github.com/stefins/wdcrypt

cli encryption fernet privacy rust

Last synced: 27 days ago
JSON representation

πŸ”A CLI to encrypt all the files and folder in your current working directory.

Lists

README

        

# wdcrypt-rs
[![Rust](https://github.com/stefins/wdcrypt/actions/workflows/rust.yml/badge.svg)](https://github.com/stefins/wdcrypt/actions/workflows/rust.yml)
[![releaser](https://github.com/stefins/wdcrypt/actions/workflows/release.yml/badge.svg)](https://github.com/stefins/wdcrypt/actions/workflows/release.yml)

A Rust CLI to encrypt the current working directory with Fernet encryption.
Fernet guarantees that a message encrypted using it cannot be manipulated or read without the key. Fernet is an implementation of symmetric (also known as β€œsecret key”) authenticated cryptography.


Find more about Fernet [here](https://cryptography.io/en/latest/fernet/)

## Demo
[![Demo](https://user-images.githubusercontent.com/28928206/211104078-f5fbc7c6-a9b6-47de-85ed-26ac9ef74f4b.mp4)](https://user-images.githubusercontent.com/28928206/211104078-f5fbc7c6-a9b6-47de-85ed-26ac9ef74f4b.mp4)

## Installation
Make sure you have `cargo` in your $PATH
```bash
$ cargo install wdcrypt
```

## Usage
```
$ wdcrypt --help
Encrypt your current working directory

Usage: wdcrypt [COMMAND]

Commands:
encrypt, -e, --encrypt Encrypt the current working directory
decrypt, -d, --decrypt Decrypt the current working directory
help Print this message or the help of the given subcommand(s)

Options:
-h, --help Print help information
-V, --version Print version information
```

## Building for `WASM` and running it in `wasmtime`
```bash
$ cargo build --release --target wasm32-wasi
$ cd target/wasm32-wasi/release
$ mkdir demo && cd demo
$ wasmtime run --dir=. ../wdcrypt.wasm -- --help
```

## License
MIT