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

Multiple Receivers with PGP in C# (BouncyCastle Framework)

I have already been able to manage to encrypt/decrypt files using one Public Key. Now I'd like to encrypt files with PGP for multiple receipients. How can I achieve this?
stromflut
  • 186
  • 1
  • 9
3
votes
1 answer

Cannot verify PGP signature for veracrypt executable

I just downloaded a fresh copy of veracrypt from the official website, however I'm having some trouble verifying its signature. Here's what I did: gpg import veracrypt.asc (from here) -gpg --verify "VeraCrypt Setup 1.24-Update7.exe.sig" "VeraCrypt…
user16469617
3
votes
1 answer

How to generate GPG-compatible and PEM-encoded keys using Elixir?

I'm trying to create an Elixir code that will generate GnuPG-compatible key pairs and also to be able to encrypt, decrypt and sign messages. But it's also important that it can export PEM-formatted keys and messages, so users can use it with the…
fschuindt
  • 821
  • 1
  • 9
  • 23
3
votes
2 answers

Misformed armored text error when loading key using OpenPGP

I'm trying to decrypt a file encrypted with GnuPG 2.2.28 using the Node.js package openPGP, but I can't even seem to load the private key to start with and I get the following error: { "errorType": "Runtime.UnhandledPromiseRejection", …
craigcaulfield
  • 3,381
  • 10
  • 32
  • 40
3
votes
3 answers

How to verify this PGP message in C# using Bouncy Castle or other c# library

All i need to do is verify the message below but I can not get Bouncy Castle to take the data in and given the public key verify the message. I am happy for it to be some other Lib that is used if it is free. This is to be embedded in my app that…
Seer
  • 495
  • 5
  • 20
3
votes
1 answer

When using GPG to sign git commits, what exactly is being signed?

If I use GPG to sign a commit (https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work) and then check the contents of the commit object I just created: git commit -a -S -m "This is a Signed commit" git cat-file -p HEAD I get: tree…
matthias_buehlmann
  • 4,641
  • 6
  • 34
  • 76
3
votes
2 answers

How to sign a txt file with a PGP key in C# using Bouncy Castle library

Does anyone have an example of how I can sign a txt file, using a PGP key in C# and Bouncy Castle library. Not to encrypt the file, only to add a signature.
Marcelo
  • 31
  • 1
  • 3
3
votes
3 answers

What's good way of revision control PGP encrypted text files?

What's a good approach to revision control PGP encrypted text files? The goal is to only store PGP encrypted (preferably with ASCII armor) text files any where, in local repository (working copy) and remote repository ("central" repository,…
Meng Lu
  • 13,726
  • 12
  • 39
  • 47
3
votes
2 answers

I have been working on PGP Encrypt and Decrypt for byte[] with Bouncy Castle API and getting "Invalid Armor" error message

I have been working on PGP Encryption/Decryption in Java with a bouncy castle API for a while and I had success working with files, but I have a requirement to work with inputStream/byte array and I am having issues doing that. With the following…
RaoCh
  • 71
  • 1
  • 2
  • 9
3
votes
2 answers

How to set up Maven project to optionally generate signature files

I maintain a small Java component published in Maven Central. In order to successfully publish the artifact, pgp/gpg signature files are required for all the artifacts. Following the directions here:…
3
votes
1 answer

OpenPGPkeyserver No keys found after Submit OpenPGP Public Key

When I submit a new Key in http://hkps.pool.sks-keyservers.net/ it returns 200 OK and the following body: 1 key(s) added successfully. Key block added to key server database. New public keys added: Yet, I am not sure if the key was successfully…
Miguel Gamboa
  • 8,855
  • 7
  • 47
  • 94
3
votes
2 answers

BouncyCastle Encrypt - Missing "END PGP MESSAGE"

We recently upgraded our BouncyCastle .jar files to use the latest available version, and have been working to implement them into our existing code. In testing the encryption method, we've found that the file created lacks the "END PGP MESSAGE"…
Zibbobz
  • 725
  • 1
  • 15
  • 41
3
votes
1 answer

Can you manually add a comment to a PGP public key block and not break it?

Pretend that the following is a valid PGP PUBLIC KEY BLOCK: -----BEGIN PGP PUBLIC KEY…
NYCeyes
  • 5,215
  • 6
  • 57
  • 64
3
votes
1 answer

How to get return codes from PGP Command Line code

I am using a McAfee E-Business Server v8.6 and I wanted to get the return codes from the encryption/decryption commands from the command line. I run the said codes from PowerBuilder. I wanted to get the return codes from the log file set in the…
Amtabuena
  • 31
  • 1
3
votes
1 answer

Gnupg gives "get_key failed" despite using a valid key

I want to integrate PGP encryption into my web application, after looking for what to use(extensions, libraries, etc.) I decided to go with the gnupg extension for php. Now, I do have a PGP key in one of my desktop folders and I've tried to use it's…
frogman578
  • 359
  • 1
  • 10