#pgp #openpgp #encrypt #decrypt #sign

pgp-lib

Rust library to deal with PGP operations

2 unstable releases

0.1.0 Aug 27, 2023
0.0.1 Aug 23, 2023

#6 in #sign

Download history 25/week @ 2023-08-19 194/week @ 2023-08-26 75/week @ 2023-09-02 63/week @ 2023-09-09 84/week @ 2023-09-16 47/week @ 2023-09-23 84/week @ 2023-09-30 48/week @ 2023-10-07 68/week @ 2023-10-14 58/week @ 2023-10-21 79/week @ 2023-10-28 60/week @ 2023-11-04

267 downloads per month
Used in 6 crates (4 directly)

MIT license

40KB
740 lines

🔐 pgp-lib

Rust library to deal with PGP operations, based on rPGP.

Features

  • Encrypts asynchronously bytes using multiple public keys
  • Decrypts asynchronously bytes using a secret key and its passphrase
  • Signs asynchronously bytes using a secret key and its passphrase
  • Verifies asynchronously bytes using a public key and a standalone signature
  • Finds public keys matching emails using WKD and Key Servers (HTTP and HKP protocols supported)
  • Provides helpers to generate a key pair, to read secret/public keys from path, to read signature from bytes etc.

Development

The development environment is managed by Nix. Running nix-shell will spawn a shell with everything you need to get started with the lib: cargo, cargo-watch, rust-bin, rust-analyzer

# Start a Nix shell
$ nix-shell

# then build the lib
$ cargo build -p pgp-lib

Contributing

If you find a bug that does not exist yet, please send an email at ~soywod/pimalaya@todo.sr.ht.

If you have a question, please send an email at ~soywod/pimalaya@lists.sr.ht.

If you want to propose a feature or fix a bug, please send a patch at ~soywod/pimalaya@lists.sr.ht using git send-email (see this guide on how to configure it).

If you want to subscribe to the mailing list, please send an email at ~soywod/pimalaya+subscribe@lists.sr.ht.

If you want to unsubscribe to the mailing list, please send an email at ~soywod/pimalaya+unsubscribe@lists.sr.ht.

If you want to discuss about the project, feel free to join the Matrix workspace #pimalaya or contact me directly @soywod.

Credits

nlnet

Special thanks to the nlnet foundation that helped Himalaya to receive financial support from the NGI Assure program of the European Commission in September, 2022.

Sponsoring

GitHub PayPal Ko-fi Buy Me a Coffee Liberapay

Dependencies

~26–38MB
~723K SLoC