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

How to implement PGP in PHP with short keys

I would like to implement PGP with PHP. I have seen services like Google reCaptcha or Stripe where they give the user two keys, the public one and secret one. The first one encrypts the comunication between your JS (which is visible to the public)…
Albin
  • 197
  • 2
  • 11
0
votes
0 answers

Wrap Symmetric key with Asymmetric RSA key

I have a public 2048 bits RSA Key in byte array, I need to encrypt some data but I don't want to encrypt it directly with the public key. I can generate a common symmetric key such as AES to encrypt my data. I want to then encrypt my symmetric key…
0
votes
0 answers

camel 2.21.0 - pgp encryption not working

Trying to use latest camle's pgp encryption, but seeing Caused by: java.lang.NoSuchMethodError: org.bouncycastle.openpgp.PGPPublicKeyRingCollection error, I have checked I have correct versions of camel and bouncy castle jars on classpath, also…
Ronak Patel
  • 3,819
  • 1
  • 16
  • 29
0
votes
1 answer

Using BCPG public key in ObjectivePGP for generating PGPKey its return nil

My Public key : -----BEGIN PGP SIGNATURE----- Version: BCPG…
Sunil Kumar
  • 468
  • 5
  • 12
0
votes
1 answer

Decrypt OpenPGP Session Key

I have a file encrypted using GPG that I would like to extract the session key from so I can decrypt the session key separately. I'm using Bouncy Castle to extract the session key using the following code: private static void outputSessionKey(String…
0
votes
1 answer

Is it safe to rename file encrypted using gpg public key?

While using GPG for encryption is it safe to rename the file after it is encrypted or depending on the algorithm used for encryption the file uses the name also for verifying the contents.
Vibha
  • 1
  • 4
0
votes
4 answers

How do you handle extremely large values in python?

How would I get python to work with values of the order of magnitude of 1099511627776 bits large (yeah. 137 gb)? I some what need to implement this (or if you can suggest a better way to do it, will change methods). apparently, pgp's new length…
calccrypto
  • 8,583
  • 21
  • 68
  • 99
0
votes
0 answers

PGP encryption for the server based app

Here is context: I am using PGP to encrypt messages in a chat web app. After going through some articles, I get brief idea how PGP works and here is how I am doing it with openPGPJs : Client(web browser) generate the public/private key-pairs and…
Suraj
  • 1,625
  • 1
  • 15
  • 33
0
votes
2 answers

How to generate Password Protected output file in Pentaho Data Integration?

Stuck in a strange problem. As per client requirement, I need to generate all text output files in PDI with password-protection. I have implemented PGP encryption and Symmetric cryptography(OpenPGP configured on mysystem). But I am at loss how to…
0
votes
1 answer

Read X.509 Certificate Store OpenPGP Format

I assume that this is possible based on the fact that both utilize RSA for encryption. I should be able to read X.509 and store it as a new OpenPGP key. The collaborator of my software needs OpenPGP. Another collaborator provides X.509. I am looking…
Johannes
  • 6,490
  • 10
  • 59
  • 108
0
votes
1 answer

Identifying a PGP encrypted file

Is there a way to identify a PGP encrypted file based on the file content (like the way a ZIP file can be identified by looking for letters "PK" at the beginning of the file)? Is there any magic number associated with PGP encrypted files? We receive…
Aman
  • 1,170
  • 3
  • 15
  • 29
0
votes
0 answers

How To Decrypt PGP Encrypted File (Encrypted by two PGP keys. Key1 having public, private key. Key2 having only in public key) Through JAVA API

I have two PGP keys in PGP desktop. Key1 - Created in my PGP desktop. which contains both public and private key Key2 - Created by my client and shared with us only public key. I added key2 public key only in my PGP desktop. Now I encrypted the…
0
votes
2 answers

PGP Encryption file or text?

I have a csv file that required to be encrypted. I want to ask that is there any difference between encrypt the content and encrypt the file? Or they are the same? Because our client doesn't clearly specify what they want? Thanks,
Leo
  • 2,173
  • 6
  • 28
  • 37
0
votes
2 answers

How do we set 'expiration time', when we create new key with OpenPGP?

In OpenPGP.js we have a function Key.prototype.getExpirationTime, wich "returns the expiration time of the primary key or null if key does not expire": https://github.com/openpgpjs/openpgpjs/blob/master/src/key.js#L472 But how do we set this…
Viktor
  • 259
  • 1
  • 2
  • 7
0
votes
0 answers

Java BouncyCastle signing without a passphrase

I am using bcpg-jdk16 version 1.46 with Java 8 and have attempted to,based on the examples (https://github.com/bcgit/bc-java/tree/master/pg/src/main/java/org/bouncycastle/openpgp/examples), sign a file with a PGP key generated on another system.…
jaredb
  • 21
  • 4