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 can I asymmetrically encrypt data using OpenPGP with Ruby?

This feels like it should be dead simple, yet I'm not having any luck. The scenario is this: I have a public *.asc key file. I want to use this file (not my personal keyring) to encrypt data on a server, so that I can decrypt it locally with a…
Dan Tao
  • 125,917
  • 54
  • 300
  • 447
2
votes
1 answer

OpenPGP encryption in pure PHP

I would like on your website, create a form that sends me a message encrypted in accordance with the OpenPGP standard in order to decrypt them by Thunderbird & Enigmail. Will include an order from an online shop. I can not use GnuPG, because my…
2
votes
1 answer

I keep getting errors while trying to encrypt a message using Openpgp.js

I have generated keys using Openpgp.js and I got the following key as public key: publicKey: "-----BEGIN PGP PUBLIC KEY…
2
votes
1 answer

Decrypt RC8032 PGP with Bouncy Castle .NET

I am trying to decrypt a given PGP message with Bouncy Castle .NET. I have a string for the message, a stream for the private key, and a string for the passphrase. Looking online, it looks like the first thing to do with the key is the…
ofrir
  • 21
  • 4
2
votes
0 answers

Cannot encrypt using EncryptContent in NiFi

I am using a public ASCII armored key file generated via the command : gpg --output PG1ar_en_pub.asc --armor --export "xxxxx@xxxx.com" In Nifi Encrypt content processor, I have setup the following configuration: When I run this, I am getting the…
djgcp
  • 163
  • 1
  • 14
2
votes
1 answer

Generate fingerprint with PGP Public Key

I have a PGP public key and I need to get the fingerprint for it. My Public key is as such: -----BEGIN PGP PUBLIC KEY BLOCK----- mQlDBF4w............................ . . . =uYgH -----END PGP PUBLIC KEY BLOCK----- I tried using the command gpg…
Mervin Hemaraju
  • 1,921
  • 2
  • 22
  • 71
2
votes
1 answer

OpenPGP.js - Getting an error: "Error decrypting message: Session key decryption failed."

Here is some of the code using openpgp.js: const privKeyObj = (await openpgp.key.readArmored(privkey)).keys[0]; await privKeyObj.decrypt(passphrase); options = { message: await openpgp.message.readArmored(encryptedData), privateKeys:…
jocca
  • 21
  • 1
  • 3
2
votes
1 answer

disable Thunderbird 78's "Attach my Public Key"

Is there a config editor option to disable automatically attaching my public OpenPGP key (Options → Attach My Public Key) in Thunderbird 78 (which embedded Enigmail addon functionality into the email program)?
Geremia
  • 4,745
  • 37
  • 43
2
votes
2 answers

Need public/private RSA keys for encrypting in Java and decrypting in Python

We have one system written in Java that will write encrypted files that need to be decrypted by a Python system. I am trying to figure out what kind of keys I need that can be used by both Java and Python API's, and how to generate them. The plan…
Uncle Long Hair
  • 2,719
  • 3
  • 23
  • 33
2
votes
1 answer

I can't seem to get golang's openpgp library to compress my output

I'm having problems getting compression working with Golang's openpgp library. I am trying to encrypt and compress files that are over 2G, so I'm using file buffers, even if that's a horrible practice. A snippet of my code is as follows: …
Michael Miller
  • 399
  • 1
  • 9
2
votes
0 answers

Can't import pgp key using gnupg

I'm trying to import a public key provided to me in python but for some reason the code always says "no fingerprint found" for this key. I've been able to use the same code to import another public gpg key. The only difference is that the one i was…
hpatel
  • 21
  • 1
  • 3
2
votes
2 answers

Import PGP public key from Fingerprint

I have the fingerprint 71A3 B167 3540 5025 D447 E8F2 7481 0B01 2346 C9A6 and I want to download the public key to verify the archive. I'd like to download the key from terminal, and I try to use that command: gpg --search-keys "71A3 B167 3540 5025…
monkeyUser
  • 4,301
  • 7
  • 46
  • 95
2
votes
1 answer

Equivalent of gpg --sign in golang?

I currently have a Perl script that performs a PGP sign on an email address to produce an obfuscated token. The Perl script uses the command line utility GPG version 2.2.8 (on MacOS). I would like to convert this functionality to Go. The relevant…
2
votes
2 answers

OpenSC fails to connect javacard with PKCS applet

I have empty JavaCOS A40 smartcard and want make it a PKCS PKI card. I'm going to use it as ssh key and for e-contracts signing. Russia don't provide smartcard-based e-id for citizens like EU countries do. Commercial e-signature providers are…
2
votes
0 answers

PGP encryption and decryption in java

I have the public key which is shared by client for PGP file encrpytion. I am using Java 1.7 and this question is very similar to this one. Unfortunately none of those solutions are working for me or outdated. Can someone please share the working…
Vamsidhar
  • 822
  • 11
  • 24