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

c# GPG Zip and Encrypt a Stream of files

I need to ZIP and GPG Encrypt a Stream of files. Then upload via SFTP. I am using Zip Archive to create entries. I am using GPG to encrypt, starksoft.aspen Nuget. Getting local file streams here and returning an I Enumerable of local file streams …
Ahhzeee
  • 123
  • 1
  • 12
0
votes
0 answers

GPG command works in shell but not in Go exec.Command()

I am using gnupg to encrypt files with the following command: gpg --encrypt --sign --armor -r person@email.com name_of_file This command works fine in shell. But it fails in go program with following error : gpg: cannot open '/dev/tty': Device not…
MMM
  • 71
  • 1
  • 9
0
votes
1 answer

GPG cannot decrypt files anymore after upgrade

I recently upgraded from Ubuntu 16.04 to 18.04, which came with a gpg upgrade from 0.5.0 to 0.6.0. Since that upgrade my GPG cannot decrypt files anymore: mst@mst-nb1:~$ gpg --list-keys /home/mst/.gnupg/pubring.kbx ---------------------------- pub …
replay
  • 3,569
  • 3
  • 21
  • 30
0
votes
2 answers

Gnupg - Decrypt file

I'm trying to decrypt a file but I get the following: gpg gpg: encrypted with 2048-bit RSA key, ID 4A83B612, created 2018-02-19 "user " gpg: decryption failed: secret key not available When I list my keys using: gpg…
0
votes
0 answers

How to implement PGP in PHP with short keys

I would like to implement PGP with PHP. I have seen services like Google reCaptcha or Stripe where they give the user two keys, the public one and secret one. The first one encrypts the comunication between your JS (which is visible to the public)…
Albin
  • 197
  • 2
  • 11
0
votes
1 answer

How to create a public key file in gpg from a given public key

A colleague of mine gave me their public key in text format and now I want to use that public key to encrypt my plain messages. The thing is, I don't know how to create a key for an existing public key. As in how do I import the public key in GnuPG…
0
votes
0 answers

gpg decrypt php works in terminal not in shell_exec

shell_exec("gpg --batch --passphrase LongButPlainPassword -o /var/www/html/decrypt/save/".$filename." --decrypt /var/www/html/decrypt/save/orig/".$filename); I have searched many places this works in terminal but not in shell_exec(). Am I…
0
votes
1 answer

Proper Visual Basic quoting for Program Files (86) path in the Process()

I've been trying to figure this out for a while. I've searched online and the solutions I've tried don't seem to work. This runs ok from my PC: Dim sourceName As String = File_To_Encrypt Dim gpgsourceName As String = File_To_Encrypt & ".gpg" Dim…
bop-a-nator
  • 111
  • 1
  • 11
0
votes
1 answer

Why gpg --encrypt fails with sub key packet with key flags 0x0C that never expires?

When I analyze the output of that gpg --list-packets output I see that the sub key packet never expires, and its key flags is 0C which is for "Encryption". (see output at the bottom.) The public key packet is already expired but its key flags is 03…
Grzegorz
  • 3,207
  • 3
  • 20
  • 43
0
votes
1 answer

How to automate helm package --sign non-interactively in bash

I am writing a bash script on a machine without expect. The script automates the build of a helm (v2.9.1) chart. I've got to the part in the script where it runs a helm package --sign --key 'mykey' --keyring 'path/to/keyring' -d chartdir chart and…
volvox
  • 3,014
  • 16
  • 51
  • 80
0
votes
1 answer

vb.net runs gpg.exe step of job runs ok from PC but not from SQL Server Agent schedule

Everything worked great from my Visual Studio on my PC running this from the Start button. When I build the executable and copied the executable to the production box and scheduled the job via SQL Server Agent on the production machine – everything…
bop-a-nator
  • 111
  • 1
  • 11
0
votes
0 answers

gpg: decrypt_message failed: eof

I am using Python v3.6.5 (Anaconda), python-gnupg v2.3.1, gpg.exe v1.4.22 and while decrypting I am getting below error: ERROR:root:gpg: can't create D:/folder/flder/pgb\D:/folder/flder/pgbsecring.gpg.lock': gpg: keyblock…
0
votes
1 answer

Laravel GPG - Issue when attemping to Encode

So, I'm attempting to do some encoding using GPG in Laravel. I've found the package https://github.com/jasonhinkle/php-gpg which, while no longer maintained, looks like it should still work for what I need to do. I've installed the code in a custom…
Tim Lewis
  • 27,813
  • 13
  • 73
  • 102
0
votes
0 answers

Need to script the non-Jenkins equivalent of password decryption for workstation build

In my Jenkins pipeline I am using the Jenkins server's gpg2 executable to decrypt passwords for our Openshift / Kubernetes deploys. I want to replicate this on my workstation somehow. The Jenkins groovy script supplied by our platform ops team…
Adam
  • 5,215
  • 5
  • 51
  • 90
0
votes
1 answer

Pass gpg key password when signing a release

I use a gpg key that is secured with a password. Is there a way to pass the password to the underlying gpg command? helm package --sign \ --key "my_key_name" \ --version "$VERSION" \ --app-version "$APP_VERSION" \ --keyring ~/.gnupg/secring.gpg…
QuantumLicht
  • 2,103
  • 3
  • 23
  • 32