About

Metadata

  • Last updated , by rethab
  • License MIT
  • Categories Cryptography
  • Maintained by: rethab@protonmail.com

  • Lottery factor: 1

Links

Installation

Tested Compilers

  1. 9.10.3
  2. 9.8.4
  3. 9.6.6
  4. 9.4.8
  5. 9.2.8
  6. 8.10.7

Readme

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