Debian Codegraph @

/

debian rust-sequoia-sop 0.37.3-1debian librust-sequoia-sop-dev debian librust-sequoia-sop+cli-dev debian librust-sequoia-sop+cliv-dev debian librust-sequoia-sop+default-dev debian librust-sequoia-sop-0-dev debian librust-sequoia-sop-0+cli-dev debian librust-sequoia-sop-0+cliv-dev debian librust-sequoia-sop-0+default-dev debian librust-sequoia-sop-0.37-dev debian librust-sequoia-sop-0.37+cli-dev debian librust-sequoia-sop-0.37+cliv-dev debian librust-sequoia-sop-0.37+default-dev debian librust-sequoia-sop-0.37.2-dev debian librust-sequoia-sop-0.37.2+cli-dev debian librust-sequoia-sop-0.37.2+cliv-dev debian librust-sequoia-sop-0.37.2+default-dev debian sqop debian sopv debian sqopv
1 more… cargo sequoia-sop 0.37.3
debianjsonmakefilemarkdownrustshelltomlyaml 23 files · 1154 symbols
View dependency graph

Depends on

  • bash-completion (bash-completion)
  • dh-cargo (dh-sequence-cargo)
  • cargo, debhelper-compat, librust-anyhow-1+default-dev, librust-sequoia-openpgp-2+default-dev, librust-sequoia-openpgp-2-dev, librust-sequoia-policy-config-0.8-dev, librust-sequoia-policy-config-dev, librust-sequoia-wot-0.15-dev, librust-sop-0.8+cli-dev, librust-sop-0.8+cliv-dev, librust-sop-0.8+default-dev, libstd-rust-dev, rustc, sopv-doc
README (full)

An implementation of the Stateless OpenPGP Interface using Sequoia.

This implements the Stateless OpenPGP Command Line Interface (SOP) using the Sequoia OpenPGP implementation. This crate implements the Rust SOP interface, as well as providing a command line frontend.

SOP implementations enjoy broad compatibility, see the OpenPGP interoperability test suite.

SOP cli primer

To build the cli frontend, enable the "cli" feature, e.g. using cargo build --features=cli or cargo install sequoia-sop --features=cli.

To build the cli frontend restricted to the verification subset of SOP, enable the "cliv" feature, e.g. using cargo build --features=cliv or cargo install sequoia-sop --features=cliv.

To demonstrate SOP, let's generate a key, and encrypt and decrypt a message:

$ sqop generate-key [email protected] > julia.secret.pgp
$ sqop extract-cert < julia.secret.pgp > julia.public.pgp

First, we generate a key for [email protected]. Next, we extract the certificate, i.e. the key without the secret key material.

$ echo "a message" | sqop encrypt julia.public.pgp > message.pgp
$ sqop decrypt julia.secret.pgp < message.pgp
a message

Here, we encrypt a message with Julia's certificate, and decrypt it with her key.

Selecting different crypto backends

Sequoia PGP supports a number of different crypto libraries. In order to select one for use with this crate, disable the default features and explicitly select a backend.

To select an alternate crypto backend when building the cli frontend, for example the OpenSSL backend, do:

$ cargo build --no-default-features --features cli,sequoia-openpgp/compression,sequoia-openpgp/crypto-openssl

Or to install it from crates.io:

$ cargo install sequoia-sop --no-default-features --features cli,sequoia-openpgp/compression,sequoia-openpgp/crypto-openssl

In order to use it from Rust, depend sequoia-openpgp and select a backend, like so:

[dependencies]
sop = { version = "*", default-features = false }
sequoia-openpgp = { version = "*", default-features = false, features = ["compression", "crypto-openssl"] }

Shell completions

By default shell completions are put into the cargo target directory, but the exact location is unpredictable. To write the assets to a predictable location, set the environment variable ASSET_OUT_DIR to a suitable location.

dir .cargo/
dir debian/
dir src/
file .cargo_vcs_info.json
file .gitignore
file .gitlab-ci.yml
file Cargo.lock
file Cargo.toml
file Cargo.toml.orig
file LICENSE.txt
file NEWS
file README.md
file build.rs
file openpgp-policy.toml