GPGME (abbreviated from GnuPG Made Easy) is a library designed to make access to GnuPG easier for applications.
Questions tagged [gpgme]
71 questions
1
vote
1 answer
GPGME::Ctx decrypt > GPGME::Error Not supported
On my Desktop Debian GNU/Linux 9.11 (stretch) the code works but not on a server Ubuntu 16.04.6
The problem occures in the method
Function: gpgme_error_t gpgme_op_decrypt (gpgme_ctx_t ctx, gpgme_data_t cipher, gpgme_data_t…

Ernst Arnold
- 11
- 2
1
vote
0 answers
Haskell GPGME much slower at signing than GPG
My program uses GPG for signing files. I'm using GPGME in Haskell and the issue is that it is about 16 times slower than using GPG from the command line. Here is an example:
Haskell code:
module Main where
import qualified Data.ByteString as…

8n8
- 1,233
- 1
- 8
- 21
1
vote
2 answers
View .gpg file content
I'm writing a C application and I wanna know if there is a way to view .gpg file content (then the encrypted content). The .gpg file in question concerns a simple .txt file that I encrypted.
I know a bit GPGME, it's possible with its function? Or…

ubuntiano
- 89
- 1
- 1
- 6
1
vote
1 answer
Providing password for GnuPG keys in gnupg-for-java
I have a Java application which gets GnuPG encrypted files from a remote machine and I need to decrypt and process them. Then I need to encrypt output files and send it to remote machine.
At first I tried gnupg-for-java…

Michał Niklas
- 53,067
- 18
- 70
- 114
1
vote
0 answers
Why I got NullPointerException when I run JUnit test of gnupg-for-java?
I have to exchange encrypted and signed files with customer using GnuPG and Java.
So I downloaded and compiled Java JNI binding to the gpgme library:
https://github.com/guardianproject/gnupg-for-java
But when I runt test suite it fails:
$ ant…

Michał Niklas
- 53,067
- 18
- 70
- 114
1
vote
1 answer
gnupg and gpgme lib version error on OSX
I for heaven sake can't get gnupg installed on my OS Yosemite machine using pecl.
Objective:
Install gnupg module to be used in PHP to do PGP Encryption.
Installed Stuff so Far:
Installed gpgme using brew after installing autoconf. Neither brew nor…

Rahi
- 1,435
- 1
- 12
- 20
1
vote
1 answer
GPG encryption is working in console debug mode but not in release mode( window service)
I am using gpg(GnuPG) to encrypt .csv file to .gpg file.
The below code is generate encrypted file in debug mode. When I Install under windows service it’s throwing exception. “gpg: <>C:\emp.csv: skipped: No public key
gpg: [stdin]: encryption…

kumar G
- 11
- 1
1
vote
1 answer
Ruby GPGME - How to encrypt large files
I'm having difficulty to Encrypt large files (bigger than available memory) using GPGME in Ruby.
#!/usr/bin/ruby
require 'gpgme'
def gpgfile(localfile)
crypto = GPGME::Crypto.new
filebasename = File.basename(localfile)
filecripted =…

Marco Giusti
- 47
- 1
- 9
1
vote
1 answer
Check if config file was set successfully for GnuPG in GPGME
For specifying the preferenced order of encryption algorithms in GPG I use
gpgme_set_engine_info(GPGME_PROTOCOL_OpenPGP, NULL, CONFIG_DIR);
to set a custom config file. However how can I check if this operation was successful? home_dir is set to…

little_planet
- 1,005
- 1
- 16
- 35
1
vote
1 answer
Force GPG in GPGME to use a cipher other than CAST5
I would like to use GPGME to encrypt data (no files) and save the data in a database. I learned that GPGME with OpenPGP as protocol will encrypt the data with GPG and CAST5. CAST5, that is what my command line is telling me if I check gpg2…

little_planet
- 1,005
- 1
- 16
- 35
1
vote
1 answer
C++ custom pinentry wrapper
I am trying a write a small little C++ application that uses gpg to encrypt/decrypt files. I am using the GpgME library.
I want to be able to have a little line edit where the user can enter the password for the key he wants to use to decrypt a…

pskaa
- 21
- 1
- 3
1
vote
1 answer
PHP GnuPG - Signing message fails
Update
Apparently, even though I thought I was generating keys that did not have a password, gnupg still expected a password for them (which the gnupg extension no longer supports). I regenerated a new keypair using Kleopatra on Windows and…

Spectre
- 45
- 5
1
vote
1 answer
gpgme fails encrypting on 64bit debian
I'm facing a problem which is giving me a bit of troubles to trace with gpgme.
I've reproduced it with a simple test program (starting from another simple example I found) which I paste below. This works on a 32-bit debian-based system but fails on…

user2263601
- 11
- 2
1
vote
1 answer
Cant build Firebreath when including libgpgme
Undefined symbols for architecture x86_64: "_libintl_dgettext", referenced from:
_gpg_strerror in libgpg-error.a(libgpg_error_la-strerror.o)
_gpg_strerror_r in libgpg-error.a(libgpg_error_la-strerror.o)
_gpg_strsource in…

RC1140
- 8,423
- 14
- 48
- 71
0
votes
0 answers
key retrieved from keyserver (keys.openpgp.org) can't be used (gpgme)
everyone
I've generated a pair of keys associated with my email address and uploaded the public key to the keyserver: keys.openpgp.org. With the help of gpgme examples, I wrote a C++ program using Visual Studio to retrieve my public key both…

Eric-CP
- 1
- 1