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

[ cryptography, library, mit ] [ Propose Tags ] [ Report a vulnerability ]

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


[Skip to Readme]

Modules

[Last Documentation]

  • Crypto
    • Crypto.Gpgme
      • Key
        • Crypto.Gpgme.Key.Gen

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.4.0.0, 0.5.0.0, 0.5.1.0, 0.6.0.0, 0.6.1.0, 0.6.2.0, 0.6.3.0, 0.6.3.1
Change log CHANGELOG.markdown
Dependencies base (>=4.14 && <5), bindings-gpgme (>=0.1.8 && <0.3), bytestring (>=0.10 && <0.13), data-default (>=0.5 && <0.9), email-validate (>=2.0 && <2.4), time (>=1.4 && <2), transformers (>=0.4.1 && <0.7), unix (>=2.5 && <2.9) [details]
Tested with ghc ==8.10.7, ghc ==9.2.8, ghc ==9.4.8, ghc ==9.6.6, ghc ==9.8.4, ghc ==9.10.3
License MIT
Copyright (c) Reto 2022
Author Reto
Maintainer rethab@protonmail.com
Uploaded by rethab at 2026-07-11T16:13:41Z
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
Distributions
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 5100 total (33 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2026-07-11 [all 2 reports]

Readme for h-gpgme-0.6.3.0

[back to package description]

Hackage CI MIT License

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

Examples

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

Changelog