Rust (partial) port of sett
.
Detailed documentation can be found at https://docs.rs/sett.
Add sett
to dependencies in project's Cargo.toml
.
toml
[dependencies]
sett = "*"
By default, the library uses Nettle
as cryptographic backend.
However, on Windows targets, Cryptography API: Next Generation (CNG)
can be selected at the compile time: disable default features
(default-features = false
) and enable the crypto-cng
feature.
Run cargo run --example
to list available examples.
To run a specific example, execute e.g.
shell
cargo run --release --example encrypt -- --help
For the Windows target we use the crypto-cng
backend (instead of the default
crypto-nettle
). It can be used by enabling the crypto-cng
and disabling
the defaults.
shell
cargo run --release --no-default-features --features=crypto-cng --example encrypt -- --help