h-gpgme: High Level Binding for GnuPG Made Easy (gpgme)

[ cryptography, library, mit ] [ Propose Tags ]

High Level Binding for GnuPG Made Easy (gpgme): A Haskell API for the gpgme C library.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,,,,,,
Change log CHANGELOG.markdown
Dependencies base (>=4 && <5), bindings-gpgme (>=0.1.8 && <0.2), bytestring (>=0.9), data-default, email-validate, time (>=1.4 && <2.0), transformers (>=0.4.1 && <0.6), unix (>=2.5) [details]
License MIT
Copyright (c) Reto 2022
Author Reto
Maintainer rethab@protonmail.com
Category Cryptography
Home page https://github.com/rethab/h-gpgme
Bug tracker https://github.com/rethab/h-gpgme/issues
Source repo head: git clone https://github.com/rethab/h-gpgme
Uploaded by rethab at 2022-09-25T17:56:11Z
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 4638 total (25 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user [build log]
All reported builds failed as of 2022-09-25 [all 1 reports]

Readme for h-gpgme-

[back to package description]

Hackage CI MIT License

h-gpgme: High Level Haskell Bindings for GnuPG Made Easy


let alice_pub_fpr = "EAACEB8A"

-- encrypt
Just enc <- withCtx "test/bob" "C" OpenPGP $ \bCtx -> runMaybeT $ do
        aPubKey <- MaybeT $ getKey bCtx alice_pub_fpr NoSecret
        fromRight $ encrypt bCtx [aPubKey] NoFlag plain

-- decrypt
dec <- withCtx "test/alice" "C" OpenPGP $ \aCtx ->
        decrypt aCtx enc

See the test folder for more examples