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
1 answer

Encrypting file using GnuPG on command line hangs forever

There is one file I want to encrypt with GnuPG by gpg2 --homedir=~/.gnupg --always-trust=true --recipient="BlahBlah" --encrypt=/path/to/file --output=/path/to/output_file However this command seems to hang forever and never return.…
Xinwei Liu
  • 333
  • 6
  • 15
3
votes
1 answer

How can I store a Bouncy Castle PGP key in a Java Keystore?

I have a JKS keystore that keeps several private/public key pairs in my application. That is already protected using the password for the keystore. I'm adding keys used for doing OpenPGP with Bouncy Castle, and I need to generate several keys to…
chubbsondubs
  • 37,646
  • 24
  • 106
  • 138
3
votes
2 answers

Encrypt/Decrypt Files Using Bouncy Castle PGP in JAVA

I am generating Keypair for PGP Encryption using this class and saving the Files to the disk. import java.io.BufferedOutputStream; import java.io.FileOutputStream; import java.math.BigInteger; import java.security.SecureRandom; import…
Noob
  • 31
  • 1
  • 1
  • 4
3
votes
1 answer

Check if an entered public key is a valid OpenPGP key

I'm using the GnuPG class from PHP. I'm not having any problem importing valid public key but if I try to import something random like "test" which obviously isn't a public key, I'm getting error 502 bad gateway. I saw into PHP documentation that…
Kevin Gravell
  • 499
  • 2
  • 7
  • 20
3
votes
0 answers

Add PGP encryption to my opencart contact us page

I am wondering if anyone can tell me or point me in right direction of how to add PGP encryption to my opencart 2.1 contact us page. (well maybe for all emails sent to admin) so messages are encrypted using my public pgp key. I already use SSL but…
Yoboots Tech
  • 31
  • 1
  • 3
3
votes
1 answer

BouncyCastle decryption - premature end of stream in PartialInputStream

I am trying to decrypt and verify an encrypted a file but an getting an exception java.io.EOFException: premature end of stream in PartialInputStream when doing the integrity check. The data is correctly being decrypted and the signature…
alan
  • 113
  • 1
  • 8
3
votes
1 answer

What do returned values of PHP gnupg signature verification mean?

I want to verify pgp signed text in PHP. Following PHP documentation and answer to this question i made simple script to test gnupg library. I sent signed email between two email accounts using Thunderbird with Enigmail - receiving Thunderbird shows…
WombaT
  • 790
  • 1
  • 13
  • 27
3
votes
0 answers

PGP Encrypting a Zip File with Python in Ubuntu

I am regularly generating a zip of folders on a server and pushing these archives to a storage server. To comply with data privacy regulations, we need to have these folder encrypted using a client's supplied public key. I am using gnupg, and have…
Karl M.W.
  • 728
  • 5
  • 19
3
votes
0 answers

GNUpg PGP encryption by importing someone else public key using WScript.shell script

When we create our own public key using GNUPG tool, It is working perfectly fine in "WScript.shell" in vb script but when we importing someone else public key using command "gpg --import /public key file path", it is not working from shall…
Jyotish Singh
  • 2,065
  • 3
  • 20
  • 28
3
votes
1 answer

Handling secret OpenPGP keys for unit testing

I am working on a project where the software does cryptographic operations with a GnuPG binary. Some functions have OpenPGP encrypted output, and some take OpenPGP encrypted input. In order to unit test, my plan is to generate a passwordless key for…
jornane
  • 1,397
  • 10
  • 27
3
votes
1 answer

How to verify the integrity of a linux tarball?

The tarballs of the Linux releases from https://www.kernel.org/ can be verified with .sign files. There's no information how to verify the tarball on the website or in the README in the tarball.
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
3
votes
3 answers

PGP Encrypt from C# using GnuPG

I'm trying to encrypt a incoming document in C#, and I'm using GnuPG with input redirection. I need to use -se(sign and encrypt) in a single step, which requires entering passphrase. But for some reason, input redirection is not working. Appreciate…
Kishore
  • 31
  • 2
3
votes
2 answers

Camel Crypto Fails PGP Decryption (Invalid

I generated a PGP key pair and gave another party the public key. They are encrypting a message and sending it to me. I am using Camel Crypto/PGP to try to decrypt it. I have a simple route setup in Camel…
BoneSmuggler
  • 118
  • 8
3
votes
1 answer

Delete public key from Private for Private key storage with GPG

I'm trying to make a paper based backup of a 4092 bit secret/private PGP key using a QR code generator, but the key is just too big. I'm going to go low tech here and split it into two pieces, but perhaps I don't need to. I know that when exporting…
Timothy Harding
  • 277
  • 2
  • 12
3
votes
1 answer

Extracting GPG Key Usage Flags via Bouncy Castle

It appears that while the PGPPublicKey class offers an isEncryptionKey() method to determine if a public key's algorithm is acceptable for encryption purposes (RSA_GENERAL, RSA_ENCRYPT, ELGAMAL_GENERAL, ELGAMAL_ENCRYPT) this alone is not sufficient…
loopforever
  • 495
  • 3
  • 12