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

PGP block size differs when encrypting in K9

I am using K9 and Openkeychain to encrypt emails. One odd thing that I found was how the size of the pgp block differs when same text is encrypted using two different methods. Method A involves writing the text "This is a test" in K9 and signing and…
1
vote
1 answer

How to decrypt in Java a AES256 encrypted file by GnuPG?

I'm have encrypted a text file on Linux using: gpg --cipher-algo AES256 -c file.txt That command asks for a passphrase, let's say we enter "123" here. This file can be trivially decrypted: gpg -d file.txt.gpg Now I like to decrypt this file in…
dexter meyers
  • 2,798
  • 2
  • 18
  • 22
1
vote
1 answer

Add version underneath ---BEGIN PGP MESSAGE---

We are using Openkeychain to encrypt and decrypt emails for our android mail client. We want the OpenPGP block data to look more professional. How can we add the version line in the keyblock as mentioned below? Many OpenPGP encrypters use this, and…
1
vote
0 answers

Line Breaks in OpenPGP (Using PEAR with drupal)

I am encrypting form submissions in drupal with Pear. The encryption//decryption is working fine, but line breaks are not working. What I mean by that is, whether I use Enigma in thunderbird, or I use gpg4win, the message gets decrypted, but it…
merlincam
  • 1,818
  • 3
  • 16
  • 16
1
vote
1 answer

PHP's GnuPG keyinfo function shows empty array

I need to use gnupg_decrypt to decrypt a file that is being sent to us but can't get it working. When I use the gnupg_keyinfo to list all the public keys, it returns an empty array. Does anyone have any idea why this is happening? The code I am…
Dan
  • 103
  • 1
  • 13
1
vote
1 answer

How to replace Linq Cast expression?

Question: I have some code for pgp encryption from here: http://blogs.microsoft.co.il/blogs/kim/archive/2009/01/23/pgp-zip-encrypted-files-with-c.aspx It has the below method, using some LINQ. I'm still on .NET 2.0 and can't switch higher,…
Stefan Steiger
  • 78,642
  • 66
  • 377
  • 442
1
vote
1 answer

s3cmd with OpenPGP encryption key - is this a password or a passphrase?

I setup a 10 char complex password for GnuPG with s3cmd. Run s3cmd --configure You will be asked for the two keys - copy and paste them from your confirmation email or from your Amazon account page. Be careful when copying them! They are case…
Sybil
  • 2,503
  • 3
  • 25
  • 36
1
vote
1 answer

Is Maven artifact signing a legitimate use of GnuPG comment in user ID?

I'm new to GPG signing and the intricacies are dizzying, as my other, overly-broad question indicates. So let me try to distill my current doubts into a simple question. Let's say that a company Acme wants to sign some artifacts for publishing on…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
1
vote
1 answer

Using PGP in golang

I'm trying to encrypt a string using the openPGP package in golang, but so far I haven't been successful. Nothing that I've tried so far has worked, so I'm looking for any sort of suggestions or fixes. The only requirements I have is that it should…
user2578535
  • 148
  • 2
  • 8
1
vote
1 answer

Removing "BEGIN" and "END PGP MESSAGE" strings makes decryption break

I am using the below command to encrypt plain text using GnuPG: gpg2.exe --encrypt --armor --recipient <> This returns output as -----BEGIN PGP MESSAGE-----Version: GnuPG…
user1618825
1
vote
0 answers

How I know the BodyFormat property after decrypting Pgp message using redemption

I am trying to decrypt a MSG file for a message that is originally in HTML format but encrypted using Symentec Encryption Desktop (an outlook plugin used to encrypt PGP messages). looking at the Mapi properties of the encrypted message, i am seeing…
1
vote
1 answer

How to deploy OpenPGP keys for multiple developers signing git commits?

Is there a way to set up git so that multiple users can use the same deploy key to a repository, but still have their commits tagged under their usernames? I'm asking because our company needs to be able to track exactly who makes changes to our…
LewdLime
  • 167
  • 10
1
vote
2 answers

How do I tell if OpenPGP encryption is symmetric or asymmetric?

Is there a way to tell if things encrypted via the GNU Privacy Guard are symmetric or asymmetric (without decrypting them or already knowing to start with)? How? Anyway (for those who want to know what I'm doing), I used Python 3.x to program a…
Brōtsyorfuzthrāx
  • 4,387
  • 4
  • 34
  • 56
1
vote
1 answer

Check if config file was set successfully for GnuPG in GPGME

For specifying the preferenced order of encryption algorithms in GPG I use gpgme_set_engine_info(GPGME_PROTOCOL_OpenPGP, NULL, CONFIG_DIR); to set a custom config file. However how can I check if this operation was successful? home_dir is set to…
little_planet
  • 1,005
  • 1
  • 16
  • 35
1
vote
1 answer

Which key to export for PGP encryption and signing on different devices?

I recently created a PGP keypair using GnuPG keychain tool on mac. I can see that it automatically creates a master key and an encryption sub key. Now I want to use a key for encryption and signing on my smartphone as well. So what is the best…
Siddharth
  • 2,046
  • 5
  • 26
  • 41