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]
Versions 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.4.0.0, 0.5.0.0, 0.5.1.0
Change log CHANGELOG.markdown
Dependencies base (==4.*), bindings-gpgme (>=0.1.6 && <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 Habluetzel 2018
Author Reto Habluetzel
Maintainer rethab@protonmail.ch
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 Mon Sep 10 07:41:20 UTC 2018
Distributions NixOS:0.5.1.0
Downloads 1567 total (28 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-09-10 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for h-gpgme-0.5.1.0

[back to package description]

Hackage Build Status

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