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
12
votes
2 answers

PGP/GPG Signed Python code

I'd like to (PGP/GPG) sign python code. Yes, I have read this and many other sites that talk about protecting and obfuscating python code - this all is not what I want. I DON'T want to obfuscate code. I want customers and users to see the code, they…
nerdoc
  • 1,044
  • 10
  • 28
12
votes
1 answer

GnuPG: How to encrypt/decrypt files using a certain key?

Long story short, my question is: How can I force GnuPG which private/public key to use when encrypting/decrypting files? Some explanation / Long story I have an application that must encrypt files before sending them to S3. Users can download…
TheDude
  • 3,045
  • 4
  • 46
  • 95
11
votes
4 answers

Pros and cons of using an existing .NET assembly versus a command-line tool for same purpose

I have searched the Internet and I can't seem to find anything related to this topic. I would think there would have been some discussion on it. I just can't find it. Basically, what I'm looking for is good reasons to use an existing .NET assembly…
Dan7el
  • 1,995
  • 5
  • 24
  • 46
11
votes
1 answer

Signing Git Commits on Remote VSCode Session

I am currently developing code on a remote server by using Visual Studio Code's remote SSH feature to remotely edit code using VSCode that is running on my local machine. Local machine is on Mac OS X Catalina 10.15.5, while the remote server is…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
11
votes
2 answers

Emacs epa and gnupg2: "no usable configuration"

Using Emacs for Mac OS X 25.1.1 and gnupg2 2.0.30 installed via homebrew on macOS Sierra 10.12.2. Emacs works correctly and gnugp2 also works well on the command line level (email addresses removed): pu@pumbair.local 528 ~/Dropbox/org $ echo "Hello…
uselpa
  • 18,732
  • 2
  • 34
  • 52
11
votes
1 answer

Several pgp signatures for one file

Basic options for file.txt sign in GnuPG is file.txt.asc signature. In our workflow I need the several signatures for file.txt - main example is Author sign and Validator sign. What is a best use-case for it for GnuPG ? Can I store both signatures…
Y.N
  • 4,989
  • 7
  • 34
  • 61
11
votes
1 answer

Export gpg secret key without passphrase

In gpg 1.4.16 I can gpg --export-secret-keys without a passphrase, and it isn't a problem. However, I cannot find anyway to do this in v2.1.9. It asks if I am okay with no passphase, I confirm, and it skips the key. There must be some…
theherk
  • 6,954
  • 3
  • 27
  • 52
11
votes
1 answer

How to select the GnuPG key that the maven-gpg-plugin uses to sign artifacts?

I am using the maven-gpg-plugin to sign the maven artifacts. This works fine, but I have several keys in my GnuPG keyring and want to use a different one than the one GnuPG selects. How does GnuPG select the "default" key if there are several…
Gustave
  • 3,359
  • 4
  • 31
  • 64
11
votes
1 answer

Unable to generate gpg keys in linux

I'm not able to generate GPG keys in linux sudo gpg --gen-key # This is the command to try to generate key error You need a Passphrase to protect your secret key. gpg: problem with the agent: Timeout gpg: Key generation…
user2932003
  • 171
  • 2
  • 4
  • 14
11
votes
1 answer

No secret key when signing with git

After setting $ gpg --list-keys /home/pablo/.config/gnupg/pubring.gpg ------------------------------------- pub rsa4096/46F257F2 2014-09-16 [expires: 2015-09-16] uid [ultimate] Pablo Olmos de Aguilera Corradini (Personal)…
11
votes
2 answers

Why should we always use our real names while generating GPG key?

I'm using GPG to sign my git commits as the project I'm working for wants. But I use a pseudonym and I don't want to be identified like by my GPG signature. Over here: it asks us to use only our real names (as in our passport or government issued…
batman
  • 5,022
  • 11
  • 52
  • 82
11
votes
2 answers

GPG sign all git commits without stash

git 2.0 has the config option commit.gpgsign which will sign all commits. This will also apply for git stash and will ask for the password of my gpg key. Is ther a way to automatically sign all commits, tags,... but exclude stashes?
f0i
  • 167
  • 3
  • 9
11
votes
2 answers

GPG (PGP) decryption in client side web applications

How would I be able to decrypt some encrypted data on the client side of a web application? E.g. The data is stored encrypted on the server. It was encrypted using a public GPG key. The server sends the encrypted to the client. The client needs…
Petah
  • 45,477
  • 28
  • 157
  • 213
11
votes
5 answers

how to encrypt a file using private key in gpg

I'm producing an update for some systems and I want to encrypt the updates for keeping confidentiality, integrity and validity of my signature. I want to encrypt the file with my private key and send them to my client so that they can decrypt it…
11
votes
3 answers

PGP-signing multipart e-mails with Python

I'm currently trying to add PGP signing support to my small e-mail sending script (which uses Python 3.x and python-gnupg module). The code that signs message is: gpg = gnupg.GPG() basetext = basemsg.as_string().replace('\n', '\r\n') signature =…
Dmitry Shachnev
  • 550
  • 6
  • 17