Questions tagged [openpgp]

The OpenPGP standard was originally derived from PGP (Pretty Good Privacy)

OpenPGP software uses a combination of strong public-key and symmetric cryptography to provide security services for electronic communications and data storage. These services include confidentiality, key management, authentication, and digital signatures.

See also:

362 questions
3
votes
1 answer

How to quickly generate an OpenPGP key pair using GnuPG for testing purposes?

I'm testing some code that uses python-gnupg to encrypt/sign/decrypt some plaintext, and I'd like to generate a key pair on the fly. GnuPG is (of course) super paranoid in generating the key pair, and it sucks a lot of entropy from my system. I…
vrde
  • 937
  • 1
  • 11
  • 25
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
1 answer

Why does the Java KeyStore fail at loading an OpenPGP key?

I am willing to spend some amount of time developing yet another license manager for desktop Java application. After some looking around I discovered JCPUID by Iakin that is free to use and should work at most operating systems with native libs that…
Poliakoff
  • 1,592
  • 1
  • 21
  • 40
3
votes
1 answer

Can you add an expiration date for an existing OpenPGP key that has none?

I created and uploaded (to the keyservers) an OpenPGP key that has no expiration date. Oops. I'd like to add a date to the key. Is this possible? I've read that you can extend the expiration date, but not that you can pull it back... and I'm…
user3550496
  • 333
  • 5
  • 14
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 GPG signature with OpenSSL

I wrote a simple cross-platform utility to verify GPG signatures using the gpgme. However gpgme doesn't work very well on windows and on other platforms (e.g. osx) it requires GnuPG command line utilities installed which is a pretty heavy…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
3
votes
1 answer

Scala decrypt OpenPGP (GPG) encrypted file

How can I decrypt OpenPGP encrypted file in scala? I have public and private keys and gpg --output file.txt --decrypt file.txt.gpg works.
Caballero
  • 11,546
  • 22
  • 103
  • 163
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

How does Bouncy Castle API know which key to encrypt with?

I'm curious about the Bouncy Castle API process for handling multiple public keys to encrypt data. For example, if i have 3 different clients that would like me to encrypt data and send to them using their public key for encryption, if i label each…
L Bundy
  • 73
  • 4
3
votes
1 answer

BouncyCastle C# PublicKey different than GnuPG

I am trying to get a public PGP key from a keyring created by GnuPG using the BouncyCastle C# library. I've gotten it to semi-work by using the following code. The problem is that the public key it outputs is about half the length of the real one…
Synaps3
  • 1,597
  • 2
  • 15
  • 23
3
votes
1 answer

OpenPgp encryption using Bouncycastle very slow on Unix

I am sign and encrypt a text file of 12 GB using (bcpg-jdk16-145.jar , bcprov-jdk16-145.jar) jar files. File will be encrypted and signed approximately 18 minutes in Windows Vista , jdk 1.6. But when I try to encrypt it on LINUX/UNIX system process…
3
votes
4 answers

Creating PGP keys in iOS app

I need to build an iOS application in which PGP keys will be created in order to encrypt and decrypt certain messages. Since I'm new to PGP encryption in iOS is there some library that will allow me to create, keep and access the PGP keys as well as…
R3dH4nd5
  • 35
  • 1
  • 4
3
votes
1 answer

Bouncycastle openpgpg: How to create a PGP keypair with two user ids?

using the command line gnupg i can create a key ring with a RSA key for "John Doe ". I can also add another user with uid "Jane Doe " using --edit-key and adduid. The resulting secring.gpg then looks like this: $ gpg -vv…
wallenborn
  • 4,158
  • 23
  • 39
3
votes
1 answer

grails OpenPGP decryption not working

I am making use of the Grails Plugin: crypto:2.0 and I am having problems with encrypting decrypting a message in PGP. Here is my controller code: def index3 () { def pgpK = PGP.generateKeyPair() String encodedPublic =…
3
votes
1 answer

How to get signature list from PGPPublicKey using Bouncy Castle library?

I have a PGPPublicKey object. I want to get a list of all signatures(with UserId, email Id, trust level for each singature) associated with it using Bouncy Castle API. I tried but couldn't get it. If anyone has an example link or knows which method…
Sohan Badaya
  • 365
  • 4
  • 15