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
3
votes
0 answers

How to get Key ID from PGP public key using bouncy castle library?

I am trying to get key id from PGP public key. After a lot of google search, I found one solution to read public keys using Bouncy Castle java APIs. Code snippet for same is as follows: public static PGPPublicKey readPublicKey(InputStream in) throws…
3
votes
0 answers

How to decrypt PGP files in aws S3

Client is providing huge PGP encrypted gz files (around 20 GB) in SFTP. They are also providing private key(.priv.asc) in our EC2 local. Now my requirement is to transfer the file from SFTP to aws s3 using AWS Transfer for SFTP service. After…
Basant Jain
  • 115
  • 1
  • 12
3
votes
2 answers

PartialInputStream during Bouncycastle PGP decryption

I am tryng to decrypt a file I just encrypted using bouncycastle, but im getting this exception: Premature end of stream in PartialInputStream I am using the example code from bouncycastle and haven't changed anything. I'm getting this when I use…
hs2d
  • 6,027
  • 24
  • 64
  • 103
3
votes
1 answer

Node openpgp error when encrypting: Could not find valid key packet for encryption in key

I have a error when trying to encrypt a string with a pgp public key: 'Could not find valid key packet for encryption in key 9ae788ff8eec0b31' This error doesn't appear with every key but with most of them. Here one of the keys that…
Pjotr Raskolnikov
  • 1,558
  • 2
  • 15
  • 27
3
votes
2 answers

bouncy castle open gpg2 public key

I tried to implement the solution here https://stackoverflow.com/a/33216302/4727842. My code looks like this private fun readPublicKey(input: InputStream): PGPPublicKey { val publicKey =…
Grayden Hormes
  • 855
  • 1
  • 15
  • 34
3
votes
2 answers

How to generate OpenPGP KeyPair without passphrase using BouncyCastle?

I'm working on a project which needs to generate GPG-Keys for public-key encryption. My language of choice for it is Scala and the library for the cryptographic stuff is BouncyCastle Key generation works fine, but I can't find a way to generate keys…
jsadfeew
  • 2,247
  • 1
  • 18
  • 25
3
votes
0 answers

Unable to send/upload pgp keys to keyservers

C:\Users\shiny>gpg --send-keys 170AD0000539A3B gpg: sending key 170AD0000539A3B to hkps://hkps.pool.sks-keyservers.net gpg: keyserver send failed: Server indicated a failure gpg: keyserver send failed: Server indicated a failure gpg --send-keys…
Shiny
  • 161
  • 1
  • 1
  • 9
3
votes
2 answers

No Valid GPG found while installing kubernetes

Error while adding kubernetes key curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - gpg: no valid OpenPGP data found. I tried using wget verbose command wget --no-check-certificate -vO -…
sushma
  • 43
  • 1
  • 6
3
votes
1 answer

can't use gpg-agent as an ssh agent

I've been trying to get gpg-agent to work as an ssh agent, but without any luck. I'm running the KDE version of Linux Mint (Sarah). First, I disabled the built-in ssh agent in /etc/X11/Xsession.options: # $Id: Xsession.options 189 2005-06-11…
Jeroen Jacobs
  • 1,423
  • 3
  • 16
  • 32
3
votes
2 answers

Can an OpenPGP public and private key pair can have different key ID (short key ID)?

Can an OpenPGP public and a private key pair, which can be used for encryption and decryption successfully, have different key IDs (short key IDs)? What I have tried: I have used Bouncy Castle (C#) to get the short key id for a test OpenPGP public…
A_m0
  • 974
  • 2
  • 17
  • 45
3
votes
1 answer

Pgp sign+encrypt then decrypt+verify

While going with sign encrypt then decrypt and verify, I keep getting unknown object in stream while verifying. Message integrity check passed but when I try to verify in the very next line after decrypt I'm getting the above said error. private…
pvkcse
  • 99
  • 1
  • 11
3
votes
1 answer

Create a PGP Compatible Signature in NodeJS using the Crypto Library

In looking at the Crypto Library I see it has the capability to sign data. Does anyone know if a PGP compatible signature is as simple as ASCII armoring the output of the Crypto Library's sign command? I have an application that needs to sign and…
Doug
  • 6,446
  • 9
  • 74
  • 107
3
votes
0 answers

Decrypting/decompressing partial/incomplete PGP file

A client sends us text files via a third-party FTP service, which the client has encrypted and compressed with PGP. Recently we have received incomplete or partial PGP files. Somehow, we can un-PGP these files and turn them back into TXT files, but…
Brian Battles
  • 971
  • 1
  • 7
  • 19
3
votes
1 answer

Encrypted email test data set

I'm looking for a set of emails encrypted (and signed) by a variety of email clients in order to test a mail client. A downloadable mbox file along with test gpg keys would be ideal for this. There seem to be a variety of ways that emails are…
Hamish Downer
  • 16,603
  • 16
  • 90
  • 84
3
votes
1 answer

Expected GPG user ID for Maven Central artifacts?

I was going through the (seemingly intricate) procedures for getting a company's artifact on Maven Central. Then I got to the GPG signing part and entered a new world of confusion and conundrums. GPG has so many options, and it's not evident what a…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272