Questions tagged [pgp]

Pretty Good Privacy (PGP) is a data encryption and decryption computer program that provides cryptographic privacy and authentication for data communication.

Pretty Good Privacy (PGP) is a data encryption and decryption computer program that provides cryptographic privacy and authentication for data communication. PGP is often used for signing, encrypting and decrypting texts, E-mails, files, directories and whole disk partitions to increase the security of e-mail communications. It was created by Phil Zimmermann in 1991.

PGP and similar products follow the OpenPGP standard (RFC 4880) for encrypting and decrypting data.

Resources

817 questions
109
votes
8 answers

Can't check signature: public key not found

I try to decrypt file using following command: gpg --output file.txt --decrypt file.pgp File is decrypted successfully but i get an error: "gpg: Can't check signature: public key not found" Any idea, why I get this error?
codelikeprogrammerwoman
  • 1,429
  • 3
  • 14
  • 17
61
votes
1 answer

How to transfer pgp private key to another computer?

I read this article (archived link) which explained very well how to setup PGP on macOS. But I'm planning to use the keys generated for signing Git commits, so I figure I need to transfer the keys to other computers. Is this correct? And, if so,…
erikvold
  • 15,988
  • 11
  • 54
  • 98
50
votes
1 answer

Changing name/comment on GPG key/uids without losing signatures?

Over the years I've accumulated a few keys. When I generated them, and when I added various uids to them, I didn't use the 'comment' feature wisely. At this point I would like to correct that and update just the comment field on each of the uids --…
RoUS
  • 1,888
  • 2
  • 14
  • 29
45
votes
6 answers

How to encrypt a string/stream with bouncycastle pgp without starting with a file

I need to encrypt a stream with pgp using the bouncycastle provider. All of the examples I can find are about taking a plain text file and encrypting that however I won't have a file and it's important that the plain text never be written to…
dstarh
  • 4,976
  • 5
  • 36
  • 68
44
votes
9 answers

How to do PGP in Python (generate keys, encrypt/decrypt)

I'm making a program in Python to be distributed to windows users via an installer. The program needs to be able to download a file every day encrypted with the user's public key and then decrypt it. So I need to find a Python library that will let…
Greg
  • 45,306
  • 89
  • 231
  • 297
41
votes
5 answers

Encrypt in Javascript, decrypt in PHP, using public-key cryptography

I'd like to encrypt in JavaScript, decrypt in PHP, using public-key cryptography. I've been trying to find libraries that can accomplish this, but am having issues. I am currently looking at openpgpjs, but I need support in all browsers, and even…
oxygen
  • 5,891
  • 6
  • 37
  • 69
38
votes
2 answers

Sign git commits with GPG

Is there a way to sign git commits with gpg? It's so easy with tags (using -s instead of -a), it seems there would be a similar function for commits.
austin1howard
  • 4,815
  • 3
  • 20
  • 23
34
votes
5 answers

PGP Encryption and Decryption with Java

I want to decrypt a file using PGP keys. I have downloaded PGP keys installer and installed. Using that I created a text file and encrypted the text file using PGP keys. Then I got a .pgp extension file which is encrypted. Now I want to decrypt the…
user1216228
  • 383
  • 1
  • 4
  • 10
31
votes
2 answers

Configure GPG for Git on Windows

I installed Git for Windows including Git Bash on Windows 10 and Gpg4win. By default, I had to re-import all keys I created via Kleopatra into the GPG version built into the Git Bash, and it won't allow me to setup an agent. What I need to do is to…
just.me
  • 2,155
  • 5
  • 16
  • 25
31
votes
5 answers

C# How to simply encrypt a text file with a PGP Public Key?

I've researched a bit about how to achieve what I said in the question and found several APIs but most of them look very complicated and since I'm just a noobie in this area I just want a simple method like: public String Encrypt(String message,…
Leo
  • 2,173
  • 6
  • 28
  • 37
27
votes
4 answers

PGP Encryption in Javascript

I'm looking to do some client-side PGP encryption in Javascript. I've found some GPL library scattered on the web, but for obvious reason, I cannot use that code due to licensing issues. I'm looking for some BSD-like license library that would…
Claude Houle
  • 41,064
  • 8
  • 33
  • 42
27
votes
2 answers

Encrypt files using PGP in PHP?

I want to use PGP encryption to encrypt a CSV files, I am generating through a PHP script and then send that file to client via email. Client will give me the encryption key, which I need to use for encryption files. I Googled about PGP and found it…
djmzfKnm
  • 26,679
  • 70
  • 166
  • 227
22
votes
6 answers

what is the best/easiest to use encryption library in python

I want to encrypt few files using python what is the best way I can use gpg/pgp using any standard/famous python libraries?
Anurag Uniyal
  • 85,954
  • 40
  • 175
  • 219
21
votes
4 answers

PgP Encryption and Decryption using BouncyCastle c#

I've seen a number of posts, followed a number of tutorials but none seems to work. Sometimes, they make reference to some classes which are not found. Can I be pointed to a place where I can get a simple tutorial showing how to encrypt and decrypt…
ritcoder
  • 3,274
  • 10
  • 42
  • 62
20
votes
4 answers

How do you verify an encrypted and signed file with gpg?

I am trying to get a better understanding of what is going on with gpg. If you have a file and sign it: gpg --sign file.txt you can verify it with: gpg --verify file.txt.gpg when you get a successful output: gpg: Signature made... But when you sign…
Eric Stermer
  • 959
  • 1
  • 12
  • 23
1
2 3
54 55