GNU Privacy Guard for R

Bindings to GnuPG for working with OpenGPG (RFC4880) cryptographic methods. Includes utilities for public key encryption, creating and verifying digital signatures, and managing your local keyring. Note that some functionality depends on the version of GnuPG that is installed on the system. On Windows this package can be used together with 'GPG4Win' which provides a GUI for managing keys and entering passphrases.



  • Restore password entry, use askpass() package
  • Fix vignette: Glenn Greenwald's example key has expired
  • Fix #3 for realz


  • MacOS: update to gpgme 1.12.0 with gnupg 1.4.23
  • Windows: update to gpgme 1.11.1 with gnupg 1.4.23
  • Add as_text parameter to decrypt to support raw output
  • Do not ask for user confirmation in gpg_delete(), fixes #3
  • Remove the password entry callback (doesn't work in gpg anymore)


  • Extract autobrew script to separate repository


  • Always try to use native pinentry first before fallbacks
  • Add gpg_list_signatures() function
  • Refactor gpg_list_keys()


  • Add support for non-detached (clear/normal mode) signature
  • Rename some parameters for consistency
  • Support 'search' parameter in gpg_import (tnx Marius Pascariu)
  • Expose 'pinentry' function
  • Better out-of-the-box support for entering passphrases
  • Search for keys on multiple keyservers
  • Mention 'haveged' to solve freezing keygen problem


  • Initial CRAN release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.2.2 by Jeroen Ooms, a year ago (docs) (dev)

Report a bug at

Browse source code at

Authors: Jeroen Ooms [aut, cre]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports curl, askpass

Suggests knitr, rmarkdown

System requirements: GPGME: libgpgme-dev / libgpgme11-dev (deb), gpgme-devel (rpm) gpgme (brew). On Linux 'haveged' is recommended for generating entropy when using the GPG key generator.

Suggested by knitrdata.

See at CRAN