[go: up one dir, main page]

Skip to content

letsrust/rcli

Repository files navigation

rcli

Rust CLI tools.

Dependencies

# add clap to cargo.toml
cargo add clap --features derive

# add anyhow to cargo.toml
cargo add anyhow

cargo add csv
cargo add serde --features derive
cargo add serde_json

Run

# cargo run to test
cargo run -- csv -i assets/juventus.csv -o output.json --header -d ','

Text encrypt / decrypt

# generate key
cargo run -- text generate --format chacha20 --output-path fixtures

# encrypt
cargo run -- text encrypt --key fixtures/chacha20.txt --input README.md

# decrypt
cargo run -- text decrypt --key fixtures/chacha20.txt --input fixtures/textencrypt.txt

Jwt

# Key is hello
cargo run -- jwt sign --sub abc --exp 1d --aud aaa
cargo run -- jwt verify -t ...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages