Questions tagged [gnupg]

GNU Privacy Guard (GnuPG / GPG) is a cryptography suite implementing secret-key cryptography and public-key cryptography. GnuPG is the GNU project's complete and free implementation of the OpenPGP standard as defined by RFC4880. Use this tag for programmatic use of the GPG tool or its library. Questions about direct usage of the GPG tool or its graphical pendents belong on Super User.

GNU Privacy Guard (GnuPG) is a cryptography application. It implements a combination of conventional symmetric-key cryptography for speed, and public-key cryptography for ease of secure key exchange.

GnuPG is the GNU project's complete and free implementation of the OpenPGP standard as defined by RFC4880.

GnuPG allows encryption and signing of data and communication. It features a versatile key management system as well as access modules for all kinds of public key directories. The gpg command line tool has features for easy integration with other applications. A wealth of front-end applications and libraries are available.

See also:

1783 questions
0
votes
1 answer

Installing and Using gnug

I am trying to install gnupg not really knowing what I am doing... What I did: CPanel -> Software -> PHP Selector | extensions Within this screen, there was an option "gnupg" which was unchecked - so I checked it and then clicked save. I assumed…
php-b-grader
  • 3,191
  • 11
  • 42
  • 53
0
votes
2 answers

system() calls successful from script/console but silently failing in application

Specifically calls to gpg. I'm having a hard time tracking down the problem as the logs don't give any output for these failing calls and they work perfectly from the production console. I've tried specifying the path to gpg: system "path/to/gpg…
hellodally
  • 265
  • 1
  • 9
0
votes
1 answer

How Yubikey works with GPG?

please help me to understand how yubikey works with GPG. I have a key, and i moved it to yubikey. But before that i made a backup my .gnupg folder. After that, i removed yubikey to use it on another PC. On the PC i removed .gnupg folder and restored…
Dmitriy
  • 33
  • 5
0
votes
0 answers

How to recover the gpg secret key?

I am using a new computer, but my gpg secret key is in another computer which is broken, so I can not import it from there. Then how can I find back the the secret key ? Thanks
zjffdu
  • 25,496
  • 45
  • 109
  • 159
0
votes
1 answer

apt-key fails recently inside docker

Lately, I'm getting this error when building Ubuntu/Debian based containers: Warning: apt-key output should not be parsed (stdout is not a terminal) Executing: /tmp/apt-key-gpghome.jZsMrv3GZH/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80…
Anton Krug
  • 1,555
  • 2
  • 19
  • 32
0
votes
1 answer

Is it okay to encrypt sqlite3 database with GnuPg?

I've been playing around with coding up a small password management command line utility in Python. Mostly just for fun, and probably nothing I would ever actually use since I already use established tools for this task. The program stores site,…
DudeGuy
  • 129
  • 2
  • 7
0
votes
1 answer

Gnupg doesn't decrypt the file in php

I try to decrypt my enrypted file(zip archive which contains multiple files) with Gnupg in php, but it constantly returns false. no exception or error message. here's encryption: $gpg = gnupg_init(); gnupg_seterrormode($gpg,…
devnull Ψ
  • 3,779
  • 7
  • 26
  • 43
0
votes
1 answer

Generate Files from Oracle with signature

I would like to sign a file with gpg when creating the file using plsql from an Oracle application. I've already googled a lot and found nothing that works for me. The signature must be read from another application. Therefor I have to use gpg for…
Andreas
  • 1
  • 1
0
votes
1 answer

How do I get GPG public key details without gnupg in PHP?

I've got public key generated with GPG tool: -----BEGIN PGP PUBLIC KEY…
Daniel Gadawski
  • 1,893
  • 4
  • 20
  • 32
0
votes
1 answer

How to replace text in files with a text that has complicated characaters?

I need to run the operation below but the bash or zsh terminal does not like those characters. How do I run it properly? find ./ -type f -exec sed -i 's/PHRASE=TEST/pwds=`gpg --decrypt ~/test.gpg` & eval "$pwds"/gI' {} \; PHRASE=TEST needs to be…
yarun can
  • 2,871
  • 5
  • 25
  • 27
0
votes
1 answer

Bulding on xcode fails

I'm trying to build the latest version of GPGMail for MacOS Mojave, and within xCode when building the GPGMail module, I get an error in one of the last "Build Phases" All I simply did was downloaded the source code, and opened it with xcode. But of…
James
  • 3,580
  • 3
  • 25
  • 36
0
votes
1 answer

python gnupg decryption failing due to bad password on generated keys

I'm trying to use the Python gnupg package from here to do GPG encryption. I wrote some sample code to make sure I was using the API correctly but most of the existing examples of the package use a home directory. I'd like to be able to…
Fewmitz
  • 487
  • 1
  • 5
  • 21
0
votes
1 answer

Invalid packet GPG Error when publishing Scala.js library to Sonatype

I am trying to publish my Scala.js library to Sonatype and followed these…
Florian Baierl
  • 2,378
  • 3
  • 25
  • 50
0
votes
1 answer

'gpg2' is not recognized as an internal or external command

I use the maven-gpg-plugin in linux all is okay I can install the gpg2 for sign but in windows there is a problem with deploying. There is log 'gpg2' is not recognized as an internal or external command, operable program or batch file. (The same I…
Beno
  • 945
  • 11
  • 22
0
votes
1 answer

GNUPG Decryption command line

Am trying to decrypt an encrypted file, I have all the keys in place (secret and public), I don't know why its not generating output file. Following are the commands am running. I know there are several post already there but I cant refer them until…
Mangesh Sathe
  • 1,987
  • 4
  • 21
  • 40