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

How do I create an encrypted OpenPGP private key in Go?

I would like to generate OpenPGP key pairs and encrypt them using 'passphrases' before exporting them. I would like to do so in Go, using its openpgp package. So far I have generated key pairs, exported them and successfully imported the public keys…
cg.
  • 3,648
  • 2
  • 26
  • 30
2
votes
1 answer

How to deal with a lost OpenPGP signature key?

My laptop crashed and I cannot uncover the files including my OpenPGP signature key, and I can no longer deploy to the central Maven repository. The question is can I generate an new key pair and distribute the public key to key server like…
Gelin Luo
  • 14,035
  • 27
  • 86
  • 139
2
votes
0 answers

Is there a standarized way for OpenID Connect identity provider to also be a PGP key server?

As I understand, OpenID Connect can be used by a server to prove someones identity to another server using a signed token. For this, identity provider needs to authenticate the user in some way - and generally keep tab on who is who. On the other…
atok
  • 5,880
  • 3
  • 33
  • 62
2
votes
1 answer

PGP Key Server and Bouncy Castle OpenPGP API Java

Is it possible (and then how) to communicate with PGP Key Server, like https://pgp.mit.edu or http://keyserver.pgp.com or private key server: upload a key, search for a key, download a key etc. - using Bouncy Castle OpenPGP API on Java? Is there…
Viktor
  • 259
  • 1
  • 2
  • 7
2
votes
1 answer

Bouncycastle PGP encryption error Illegal Key Size

I'm currently writing an encrypted messaging service in java, and I'm using the bouncycastle PGP library. I have written a test program that generates a key pair, and encrypts/decrypts a message. This was working for a while, but it recently stopped…
Luke Meyer
  • 81
  • 8
2
votes
1 answer

View git pgp sigs in a commit with out gpg installed

In some cases I will be using a system that does not have gpg installed and I do not want to take the time the set it up and get the pub key installed. I would like to just view the signature on the commit and copy it to another system to validate…
Dasoren
  • 305
  • 1
  • 3
  • 10
2
votes
0 answers

Decipher APDU for OpenPGP smart card applet

I'm implementing data deciphering into my Java application using javax.smartcardio APIs. I'm using Yubikey NEO smart card element. I managed to: Select OpenPGP applet CW=9000. Present the right PIN to the applet CW=9000. Encrypt data using matching…
atok
  • 5,880
  • 3
  • 33
  • 62
2
votes
3 answers

What algorithm does PGP use to encrypt the private key using the passphrase?

The PGPKeyRingGenerator constructor takes in a passphrase to encrypt the private key. What is the algorithm that it uses to do this? It has a field called encAlgorithm, but I couldn't find any documentation explaining what these algorithms are.
pizzathehut
  • 665
  • 1
  • 6
  • 5
2
votes
1 answer

How do I encrypt a PGP message through java's crypto extension?

Currently I'm using bouncy castle's libraries for the actual work and have found an example at sloanseaman.com that (after a little tweaking) works with v1.52. I've also got a working example from developer.com of how to use the JCE interface and…
mike
  • 565
  • 1
  • 3
  • 18
2
votes
1 answer

OpenPGP.js passing PGP block to javascript variable

I have setup a file using OpenPGP.js which encrypts a message. I need to set the PGP blocks to a javascript variable so i can pass it to the encrypt/decrypt functions. When I paste it in normally it breaks the script as its multiple lines. I have…
user4287915
  • 366
  • 2
  • 11
2
votes
2 answers

java sign public pgp key with bouncycastle

I've got a doubt.. I have to sign a pgp public key using bouncycastle api supposedly. Now: to my understanding signing a key with another means ultimately adding to this public key a "certificate". Thus lacking any other way, I've gone blind…
witchedwiz
  • 295
  • 2
  • 10
2
votes
1 answer

What is a PGP Secret Key?

I am working on a C# app that encrypts/decrypts messages using PGP implemented by the Bouncy Castle (BC) library. I know PKI but the secret key in PGP throws me off a bit. I looked at the BC examples/source code and the PGP RFC but came away with…
Stack Undefined
  • 1,050
  • 1
  • 14
  • 23
2
votes
4 answers

Shell script not picking up password file...

Running the below shell script seems to ignore the password file I'm feeding it. I'm continually prompted for it. If I enter it, the rest of the script goes without a hitch, but as I'm running it via cron, I really need to get it to read from the…
BigDogsBarking
  • 137
  • 1
  • 4
  • 8
2
votes
1 answer

Is it possible to sign Git commits when using SVN?

I am using git-svn to push to a remote SVN server as well as remote Git repositories. I would like to sign my Git commits using PGP, but I cannot do this before a git-svn dcommit, as this will modify the commit message. I can --amend a signature to…
Pat Hawks
  • 383
  • 2
  • 7
2
votes
1 answer

Verify digital signature using php

I have an email which is digitally signed. email : -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The below email has been digitally signed for test purposes. We will now go on and save this signed email in our dms system. -----BEGIN PGP…
Tushar Wagh
  • 45
  • 1
  • 3