Skip to content

dmp1ce/h-gpgme

 
 

Repository files navigation

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

About

highlevel bindings for gnupg made easy in haskell

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Haskell 98.6%
  • Shell 1.4%