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
1
vote
0 answers

OpenPGP C++: cmake - library not found for -lgmpxx

Context I am trying to use the OpenPGP C++ library on a MacOS machine. Issue I am following the instruction to build the library: mkdir build cd build cmake .. make make install I manage to run the cmake. When passing to the step of…
1
vote
1 answer

Integrity protection warning in Bouncy Castle Encryption in Android App

With reference to this answer link I am getting a the following warning : gpg: WARNING: message was not integrity protected gpg: Hint: If this message was created before the year 2003 it is likely that this message is legitimate. This is…
IROC
  • 97
  • 1
  • 12
1
vote
1 answer

Openpgp: Using python wrapper python-gnupg 'error - sign-encrypt 17' - Error only when signing

For encrypting and signing a message I want to use the python-gnupgp module. The module is a wrapper of gnupgp. The encryption works fine, but if I specify the sign option I get an error. gpg: WARNING: unsafe permissions on homedir…
Matthias Herrmann
  • 2,650
  • 5
  • 32
  • 66
1
vote
1 answer

I have a PGP message ("-----BEGIN PGP MESSAGE----- ...") How do I get the session key?

When you receive a PGP message encrypted with your key, your PGP software can decrypt it because the message itself is encrypted with a one-time use random key and that random key is encrypted with your own key. Therefore, if you can get the random…
Dave Scotese
  • 498
  • 5
  • 17
1
vote
0 answers

openpgp-php can't decrypt cipher text from other clients

See source code below to reproduce this issue. Step 1 encrypts the message using gnupg while step 2 decrypts the message from step 1 using openpgp-php. To execute code ensure you have PHP gnupg and openpgp-php installed. (see…
Hamfri
  • 1,979
  • 24
  • 28
1
vote
0 answers

Extend key validity of a PGP key (public and secret) based on the keyId using Bouncy Castle Open PGP Java APIs

Need a help on extending the validity/expiry of a PGP secret/public key based on the associated keyId. We are able to extend the key validity but its resulting in a altogether new keyId which we don't want, any code snippet or reference will be…
1
vote
0 answers

gnupg encryption using nodejs

what is the better library to use gnupg encryption using nodejs I have a binary public key, Need to encrypt json payload, Send it as a formdata (multipart-form) to another API. I tried looking at openpgp.js, tried reading the key and encrypting,…
hashbytes
  • 769
  • 1
  • 8
  • 26
1
vote
0 answers

Openpgpjs wont read key

I'm trying to encrypt text with OpenPGPJS in react application. I have a function in react class: const openpgp = require('openpgp'); ... class XYZ extends React.Component{ ... async encrypt(text, targetKey){ await openpgp.initWorker({…
Khan
  • 37
  • 1
  • 3
1
vote
1 answer

Why does passing a FileStream to a PGP Decryption function work but not a MemoryStream?

I'm trying to decrypt PGP encrypted text via a memory stream. Because the PgpCore NuGet package takes in a generic Stream object, I am expecting a MemoryStream to work. Instead, I am getting obscure errors like "unknown object in stream 47". I've…
David King
  • 108
  • 1
  • 8
1
vote
1 answer

Extracting Modulus and Exponent from PGP Public Key

I am working on an application that implements PGP encryption. I am faced with a issue where we need to extract the Modulus and Exponent from the PGP public keys. I am using Bouncy castle PGP library. Please help.
user581027
1
vote
0 answers

Integrating OpenPGP functionality with PKCS#11 to use an HSM appliance in a .NET/C# application

Any ideas/suggestions on how to implement the OpenPGP standard to use the HSM to handle cryptographic operations. PKCS11 is the standard to communicate with the HSM, and it is very primitive comparing to the OpenPGP standard. I am using the…
Ba5har
  • 11
  • 2
1
vote
2 answers

gpg: no valid OpenPGP data found while installing Brave Browser

curl -s --no-check-certificate https://brave-browser-apt-nightly.s3.brave.com/brave-core-nightly.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-prerelease.gpg add - I've used this command during the installation of Brave Browser…
dextoruz
  • 11
  • 5
1
vote
0 answers

Uncaught Expected token < with OpenPGP initWorker using Create React App

I have a Create React App project and am trying to encrypt a string with OpenPGP.js. However, I'm running into an unhandled syntax error. Assume the pubkey was already generated. I already tried changing the relative path of initWorker. const…
1
vote
0 answers

Cannot generate DSA/ECDH key with Curve25519 for use as an OpenPGP key using Bouncy Castle

I'm trying to generate an OpenPGP keyring using a DSA and a ECDH keypair combination using Bouncy Castle's Java APIs. In order not to rely on NIST curves, I have chosen Curve25519 to be the function I want to use. However, upon keyring export I get…
Alexander Leithner
  • 3,169
  • 22
  • 33
1
vote
0 answers

How to decrypt file via C# using PGPTool keys

I have private and public keys that was created in PGPTool and I need to decrypt file using C# with private key and password, but every PGP library that I was using throw exception. Library that I was try in my code: PGPCore, OpenPGP, ChoPGP. All…