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

BouncyCastle PGP textmode in Java implementation does not convert to CR/LF

Is there any way to specify the textmode in BouncyCastle PGP encryption Java implementation? I tried this but no luck (encrypted with UNIX line ending and decrypted in Windows): PGPLiteralDataGenerator pgpldg = new…
0
votes
0 answers

gpg --import fails with no valid OpenPGP data found 2

I'm getting the error below while I'm trying to import .pub file in Unix box. Error...gpg no valid openpgp data found. gpg total number processed 0 using Command. >gpg --import cv0_intf_rsa.pub I'm new so I don't know what other information you…
0
votes
1 answer

Time out event occurred while executing GnuPG using C#

I am running a decryption process on millions of files and I am using GnuPG for this. After the job running for couple of minutes it is closing abruptly with the following error: ERROR: Starksoft.Aspen.GnuPG.GpgException: Error. Action: Decrypt. …
HadoopAddict
  • 225
  • 6
  • 18
0
votes
1 answer

Saving the PgpPublicKey to string

I am generating a public key and secret Key and want to save the public key in a string field.Saving it to the file works fine. but how do I get it into a string... private string SaveAndReturn(PgpPublicKey publicKey, bool armor = true) { …
katie77
  • 1,797
  • 4
  • 25
  • 43
0
votes
1 answer

How to Encrypt a String to an ASCII armored file in go

I'm at the moment realy struggeling in finding the error in my code - the task is to encrypt a string into a pgp ASCII armored file - a simple thing one could think. I use the following function, inspired by this gist: // pgp encryption using the…
Andreas
  • 1,691
  • 1
  • 15
  • 34
0
votes
2 answers

How to deliver private keys for later decryption safely?

I'm developing the set of applications, that provide the possibility to read encrypted data between several users using email messages. It's rather hard... If to compare email messaging with the live chatting (IMs) through single server (for live…
user4959035
0
votes
1 answer

Error from openpgpjs example: 'openpgp.encrypt is not a function'

I'm getting 'openpgp.encrypt is not a function' error while trying the example given at the openpgp.js github page: https://github.com/openpgpjs/openpgpjs/blob/master/README.md#getting-started Following the example presented and after installing…
tgoneil
  • 1,522
  • 3
  • 19
  • 30
0
votes
0 answers

Python: How to extract Public Key from an openPGP Certificate and encrypt a file with it?

I have been given a openPGP Certificate and I need to encrypt some files using it. It can be done easily using Kleopatra tool, but I need to do it in Python. What I want to do is pretty much same as what has been done here using Crypto and M2Crypto…
Arash.H
  • 101
  • 1
  • 9
0
votes
1 answer

How to verify an OpenPGP signature on a public key?

I am working on a go project that will need to verify an OpenPGP public key, to be able to use it to verify file signatures. I've generated a root key, and another key, which I've signed with the root key (let's call the second key signed). I've…
FrontierPsycho
  • 743
  • 7
  • 25
0
votes
1 answer

Gpg4win - allowing app pool access to public keys

I have implemented OpenPGP encryption on a c# console application that sends out a PGP encrypted email, using MimeKit and Gpg4win. I have the console app running fine, but when I implement this for a Website running in IIS the public keys are not…
user806982
  • 135
  • 4
  • 16
0
votes
0 answers

OpenPGP error while using Meta Discovery

I'm currently testing the CoreOS container runtime rocket and recreated a scenario to sign and distribute images via Meta Discovery which is based on the following guide. When I try to run a self-signed image using Meta Discovery I get the following…
0
votes
1 answer

Can't decrypt openpgpjs (JS) encrypted pgp message with gnupg (Ubuntu GPG via PHP)

I'm currently developing a pgp secured web-chat where the encryption is done on client side (Javascript using openpgpjs library) and is stored encrypted in a mysql DB. In order to send the data to multiple user the server has to decrypt the stored…
0
votes
1 answer

symmetric decryption throwing error

I'm working on adding the ability to decrypt a file encrypted using GPG & Symmetric Encryption. However whenever it tries to get the private key data this exceptions keeps getting hit: Unable to cast object of type…
Eman
  • 1,093
  • 2
  • 26
  • 49
0
votes
1 answer

How can I add public key to keyring?

I get a public key via form and store it in a temp file. How can I use gpg2 utility to read key from file and add it to keyring?
mandss
  • 91
  • 6
0
votes
1 answer

Encrypting code with GPG

I want to encrypt a code I wrote. After a quick search, I have found recommendation on GPG. Is encrypting code with GPG common and standard? I have read that it is supposed to be for e-mails. If not GPG, what should I use?