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

How to decrypt a signed pgp encrypted file?

How can I decrypt and verify a file encrypted with PGP with the BouncyCastle Java API?
Shane
  • 2,271
  • 3
  • 27
  • 55
6
votes
1 answer

BouncyCastle PGP and McAfee eBusiness Server 8.6 Incompatibility

I have been banging my head against the wall now for a couple of weeks trying to figure out why our bank cannot decrypt a message that has been single-pass signed and encrypted using BouncyCastle PGP. The bank is using McAfee E-Business Server 8.6…
Nobody
  • 690
  • 2
  • 9
  • 18
6
votes
0 answers

PGP decryption with AWS KMS?

I'll do some data import form the third-party. They required me to provide a PGP public key with which they encrypt data. I don't want to generate key pairs on my machine so I'm looking at hosted solution and wondering if we can use AWS KMS (we…
Kazuki
  • 1,462
  • 14
  • 34
6
votes
2 answers

We encrypt a file for a client using BouncyCastle API. He gets a "For your eyes only" message from PGP when trying to decrypt it. Why?

We use the Bouncy.Castle C# API to do PGP encryption. I am by no means an expert on PGP encryption and the various options available. The encryption seems to run fine, however, when the client tries to decrypt it, he says that PGP won't output to…
Linus
  • 1,236
  • 1
  • 12
  • 23
6
votes
1 answer

GPG: How to delete bad session key and get asked for encryption password again?

I tried to solve this Geocache: https://www.geocaching.com/geocache/GC67EXW_signaturbruch And it gave me a password prompt, when I tried to solve gpg message.asc, but I didn't know the correct password back then. Now I know it, but it just…
6
votes
5 answers

Recommendations for Java + OpenPGP?

I want to develop a small OpenPGP client and I'm searching for a Java library for OpenPGP. Are there any (open source) recommendations for this approach? Cryptix.org does not seem alive anymore...
guerda
  • 23,388
  • 27
  • 97
  • 146
6
votes
1 answer

How to extract image from PGP key on command line?

I've created a private PGP key and then added a photo to it in my Ubuntu's Passwords and keys manager. I can see the photo there, but is there any way to view it from shell and export it as image file?
M. Volf
  • 1,259
  • 11
  • 29
6
votes
2 answers

Bouncy Castle PGP sign and encrypt in one pass?

I'm looking for an implementation of Bouncy Castle PGP 'sign and encrypt'. Ideally in one operation, if that makes any difference. I've taken the encrypt example and the signing example and tried to turn it into a 'one pass' encrypt and sign…
Interlated
  • 5,108
  • 6
  • 48
  • 79
6
votes
2 answers

Signing commits in git uses wrong subkey

I have multiple signing subkeys on my main PGP key, so that I have one for my laptop, and one for my desktop. However, it seems like both computers try to use the key for my laptop, which was created more recently than the key for my desktop. I have…
John Leuenhagen
  • 576
  • 7
  • 23
6
votes
2 answers

GitHub API OpenPGP key format

What is the format of the public_key field returned from GitHub REST API v3 for GPG Keys? For example, the command curl -v -H "Accept: application/vnd.github.cryptographer-preview" https://api.github.com/users/DurandA/gpg_keys returns the following…
DurandA
  • 1,095
  • 1
  • 17
  • 35
6
votes
2 answers

Is there a way to get an installed RPM's signature Key ID programatically?

As displayed by rpm -qi package? I don't really want to parse the output of rpm -qi. I'd much rather use rpm -q --qf, of which I can control the format and is not subjected to a future version's aesthetic whims. But the only useful tag I can find in…
JCCyC
  • 16,140
  • 11
  • 48
  • 75
6
votes
2 answers

JavaScript: Decrypt content of GnuPG encrypted files using openpgp.js

I'm trying to write a sample decryptor for GnuPG encrypted files in JavaScript using openpgp.js. So I tried it naively without even asking if it is even possible. I made the following page. popup.html
Kudayar Pirimbaev
  • 1,292
  • 2
  • 21
  • 42
6
votes
2 answers

How do I store and read PGP public keys as strings using Bouncycastle Java?

I have been trying to create, encode, store, retrieve, and decode a Bouncy Castle PGP public key. I get what appears to be the wrong output and an EOFException when I try to read the key back in. The key will be stored in a database as a string. The…
SteveB
  • 483
  • 1
  • 4
  • 18
6
votes
3 answers

Android integrating PGP into a project

I'm pretty familiar with PGP, and the way it works. I'd like to include some functionality in a project, but so far my research has left my head spinning. What I'd like to do is create a public key with a defined private pass phrase. From there,…
joey_g216
  • 796
  • 9
  • 23
6
votes
1 answer

How can I decrypt a PGP Self Decrypting Archive programatically?

Everyday I receive SDA files for whom I have the passphrase. The decryption is done by running the file and manually entering a passphrase in the program window that pops up. I'd like to avoid this manual step, and turn it into a step of an…
Diego Saa
  • 1,426
  • 1
  • 13
  • 23