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
2
votes
1 answer

pgp encryption with php "decryption failed"

I'm trying to encrypt and decrypt files with php. The files should be asynchronously decrypted with pgp. When I used the default gnupg-php-functions the encryption works well. I can decipher it on console. If I try to decipher it with php I always…
finder2
  • 842
  • 1
  • 11
  • 30
2
votes
2 answers

Install GNUPG on xampp windows

I want to use PGP in my PHP project, using XAMPP on Windows. When I run this code: $public_key = "PGP Public Key"; $gpg = new gnupg(); $key = $gpg->import($public_key); $gpg->addencryptkey($key['fingerprint']); $enc = $gpg->encrypt("Hello…
Luciana
  • 21
  • 1
  • 4
2
votes
1 answer

Decrypting in pgpy fails with "ValueError: Expected: ASCII-armored PGP data"

I have an OpenPGP encrypted file and its private key in a text file and know its passphrase. I tried this below code: import pgpy emsg = pgpy.PGPMessage.from_file('PGPEcrypted.txt') key,_ = pgpy.PGPKey.from_file('PrivateKey.txt') with…
Venkataraman
  • 138
  • 1
  • 9
2
votes
1 answer

Why bother validating a downloaded file with an OpenPGP key from the same source?

While installing some dependencies I came across this. What security is gained when validating a download with an OpenPGP key downloaded from the same source, besides the corruption of the file?
Adam
  • 1,342
  • 7
  • 15
2
votes
0 answers

PGP Encryption and Decryption in Android?

I am new to PGP encryption and Decryption technique. Can anybody take a look into this how to implement. I tried and implemented successfully by using a vendor provided that libraries. But it is supporting only for free trial with 45 days. But I…
Hareesh
  • 933
  • 3
  • 11
  • 22
2
votes
1 answer

Differentiate between PGP subkey that is expired vs one that never expires - Java bouncycastle

I am using bouncycastle.openpgp library to get the validity dates of a PGP key. A PGP key can be assumed to be never expiring if the key.getValidDays() == 0. How to differentiate between a once valid and now expired key vs a never expiring one?
Es Kay
  • 33
  • 3
2
votes
0 answers

How do I create an encrypted OpenPGP private key in Go?

I would like to generate OpenPGP key pairs and encrypt them using 'passphrases' before exporting them. I would like to do so in Go, using its openpgp package. So far I have generated key pairs, exported them and successfully imported the public keys…
cg.
  • 3,648
  • 2
  • 26
  • 30
2
votes
1 answer

How to deal with a lost OpenPGP signature key?

My laptop crashed and I cannot uncover the files including my OpenPGP signature key, and I can no longer deploy to the central Maven repository. The question is can I generate an new key pair and distribute the public key to key server like…
Gelin Luo
  • 14,035
  • 27
  • 86
  • 139
2
votes
1 answer

How do OpenPGP-signed git commits affect commit size?

If you sign git commits, an additional signature needs to be stored. What is the size of a typical signature and the impact on commit size?
Ruben Verborgh
  • 3,545
  • 2
  • 31
  • 43
2
votes
1 answer

PGP Key Server and Bouncy Castle OpenPGP API Java

Is it possible (and then how) to communicate with PGP Key Server, like https://pgp.mit.edu or http://keyserver.pgp.com or private key server: upload a key, search for a key, download a key etc. - using Bouncy Castle OpenPGP API on Java? Is there…
Viktor
  • 259
  • 1
  • 2
  • 7
2
votes
0 answers

browserify chokes when requiring openpgp

When I run browserify on a file containing require ('openpgp'), the error message says it cannot find ./config module. Test file: var openpgp = require ('openpgp'); Error message: Error: Cannot find module './config' from…
tgoneil
  • 1,522
  • 3
  • 19
  • 30
2
votes
1 answer

Why does GPGME / GnuPG use pinentry for password input?

GPGME uses a passphrase_cb method to fetch the password from the user for operations, which require access to private keys. This callback can only be overwritten for symmetric encryption, in all other cases the default pinentry is used. All this…
little_planet
  • 1,005
  • 1
  • 16
  • 35
2
votes
2 answers

Importing a private RSA key generated with GnuPG into C#

I want to sign some things within my C# application, but I need to do so with a private RSA key that I have previously generated with GnuPG instead of one new key generated within the application itself. I can export the RSA key with GnuPG and get…
Fran Marzoa
  • 4,293
  • 1
  • 37
  • 53
2
votes
1 answer

OpenPGP.js passing PGP block to javascript variable

I have setup a file using OpenPGP.js which encrypts a message. I need to set the PGP blocks to a javascript variable so i can pass it to the encrypt/decrypt functions. When I paste it in normally it breaks the script as its multiple lines. I have…
user4287915
  • 366
  • 2
  • 11
2
votes
1 answer

how do I use openPGP.js library with angularJS?

I'm pretty new to Angular. I'm trying to incorporate the openPGP library to my app (client side). I need some help on how to incorporate a javascript library to the Angular App. Thanks! I'm reading through the openPGP docs…
SamC
  • 71
  • 6