#加密 #目录 #fernet #对称 #密钥 #隐私 #文件夹

app wdcrypt

CLI 用于使用 Fernet 加密加密当前工作目录

8 个稳定版本

2.3.2 2023 年 8 月 12 日
2.3.1 2023 年 4 月 7 日
2.2.4 2023 年 2 月 9 日
2.2.3 2023 年 1 月 8 日
0.0.1 2022 年 9 月 23 日

密码学 类别中排名第 186

每月下载量 22

MIT 许可证

19KB
428 行代码(不包括注释)

wdcrypt-rs

Rust releaser

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.
更多关于 Fernet 的信息 在这里

演示

Demo

安装

确保你的 $PATH 中有 cargo

$ cargo install wdcrypt 

用法

$ 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

WASM 构建,并在 wasmtime 中运行

$ cargo build --release --target wasm32-wasi
$ cd target/wasm32-wasi/release
$ mkdir demo && cd demo
$ wasmtime run --dir=. ../wdcrypt.wasm -- --help

许可证

MIT

依赖项

~4–13MB
~174K SLoC