@hackage h-gpgme0.6.2.0
High Level Binding for GnuPG Made Easy (gpgme)
Categories
License
MIT
Maintainer
rethab@protonmail.com
Links
Versions
Installation
Dependencies (8)
- base >=4 && <5
- bindings-gpgme >=0.1.8 && <0.2
- bytestring >=0.9
- data-default
- email-validate
- time Show all…
Dependents (3)
@hackage/acme-everything, @hackage/otp-authenticator, @hackage/weatherhs
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