#cryptography #openpgp #pgp #sop #stateless-openpgp

bin+lib sequoia-sop

An implementation of the Stateless OpenPGP Interface using Sequoia

15 releases (breaking)

0.27.1 Jul 20, 2022
0.26.1 Feb 9, 2022
0.25.0 Dec 2, 2021
0.24.0 Jun 16, 2021
0.18.0 Jul 31, 2020

#683 in Cryptography

32 downloads per month


1.5K SLoC

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 demonstrate SOP, let's generate a key, and encrypt and decrypt a message:

$ sqop generate-key julia@example.org > julia.secret.pgp
$ sqop extract-cert < julia.secret.pgp > julia.public.pgp

First, we generate a key for julia@example.org. 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.


~244K SLoC