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
20
votes
4 answers

How to encrypt data in php using Public/Private keys?

I have a small string of some data (less than 1kb) that I would like to have user agents pass to other sites when they are sent from my site. In order for the other sites to verify that I was the one that created the string I though of two…
Xeoncross
  • 55,620
  • 80
  • 262
  • 364
20
votes
2 answers

Bouncy Castle PGP Decryption Issue

I've had a application using Bouncy Castle for PGP decryption which has run without any issues for the past 8 months or so, and the past 2 days all of a sudden an issue has come up where the GetDataStream method is throwing an exception: Exception…
mservidio
  • 12,817
  • 9
  • 58
  • 84
20
votes
1 answer

PGP Encrypt and Decrypt

I am really struggling with this, I need to encrypt and decrypt a string using BouncyCastle in C#. I really did try to do this on my own. I did manage to create my own keys (private and public). Please keep in mind that I am fresh out of college.
Shaun Peter
  • 201
  • 1
  • 2
  • 3
19
votes
1 answer

What are the meaningful differences between .gpg, .sig., & .asc?

I’m aware that .asc signatures are output as a text file, while .sig & .gpg are binary. That aside: Are .sig and .gpg the same file with different extensions? If not, why use one over the other? Between text files and binary files, what are the…
CuriousCat
  • 205
  • 1
  • 2
  • 5
19
votes
3 answers

Get fingerprints of OpenPGP keys

I'm trying to get the fingerprints from the public OpenPGP keys of ActiveMQ. They are published at http://www.apache.org/dist/activemq/KEYS. Unfortunately, not all the keys have fingerprints listed next to them. Do you have any idea how to proceed?
Mazzy
  • 13,354
  • 43
  • 126
  • 207
19
votes
6 answers

Key issue with installing RVM (Ruby Version Manager)

I am trying to install the Ruby Version Manager( RVM) on my CentOS 6.6 machine. I followed the instructions on the home page at https://rvm.io/rvm/install When I run this command : gpg --keyserver hkp://keys.gnupg.net --recv-keys…
user1805458
  • 1,081
  • 3
  • 9
  • 21
18
votes
1 answer

Which private key file in private-keys-v1.d directory belongs to which key?

Since GnuPG 2.1 (https://www.gnupg.org/faq/whats-new-in-2.1.html), private keys of GnuPG are stored in the private-keys-v1.d subdirectory. After experimenting with key creation etc., I found that I have several *.key files in this directory: $ ls…
Matthias Lohr
  • 1,696
  • 2
  • 20
  • 32
16
votes
1 answer

Getting PGP private key

I would like to know how data encryption and decryption works in PGP. As part of encryption, "gpg --gen-key" is used to generate the keys, And I got a public key, however I am not sure how to get private key. does it store in a specific location? is…
Swamy
  • 771
  • 1
  • 8
  • 24
14
votes
2 answers

Gradle signArchives unable to read Secret Key

I am trying to publish my Java Library to Maven Central. A part of this involves using the signing gradle plugin to sign the artifacts. I need to sign it without using the keyring file as document here as I cant provide my CI secure access to the…
Eduardo
  • 6,900
  • 17
  • 77
  • 121
14
votes
1 answer

BouncyCastle updated pgp key now getting checksum mismatch error

I have a utility that is using the BouncyCastle.Crypto dll (version 1.7.4, runtime version 1.1.4), in order to decrypt a file that is given to it by another system. I just updated the pgp key (and provided the encryptor with the new public key). The…
user1161505
  • 173
  • 1
  • 1
  • 7
13
votes
4 answers

Import PGP public key by string

I want to import a PGP public key into my keychain in a script, but I don't want it to write the contents to a file. Right now my script does this: curl http://example.com/pgp-public-key -o /tmp/pgp && gpg --import /tmp/gpg How could I write this…
Paradoxis
  • 4,471
  • 7
  • 32
  • 66
13
votes
1 answer

How to convert a (binary) .key PGP file to an ASCII-armored file?

Is there a way to convert a (binary) .key file to an ASCII-armored .asc file? There is a previous post which seems to suggest the file extension don't matter, the file content is the same: What is the difference b/w .pkr and .key file with respect…
Bruce
  • 131
  • 1
  • 1
  • 3
13
votes
3 answers

Bouncycastle PGP decrypt and verify

I'm trying to decrypt and verify a PGP message using the java BouncyCastle libraries, but am running into issues, complaining about premature ends of PartialInputStream. I know the encrypt works fine, because I can decrypt and verify messages…
Ramo
  • 283
  • 1
  • 5
  • 15
13
votes
3 answers

Secure method for storing/retrieving a PGP private key and passphrase?

I have a web application that needs to store server login information. I'm using a 2048bit PGP public key to encrypt inserted passwords (see the insertServerDef) and a private key with a passphrase to decrypt the passwords (see getServerDef). As I…
Elliot B.
  • 17,060
  • 10
  • 80
  • 101
12
votes
3 answers

Exporting public key from GnuPG fails with "WARNING: nothing exported"

Im new to PGP and I'm trying to generate a PGP private key using GnuPG through this tutorial. Basically, I have type the following command in command prompt (in administrator mode): gpg --gen-key Entered all the commands as below: Then I entered…
AshT
  • 535
  • 1
  • 8
  • 20
1
2
3
54 55