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

Issues with openpgp golang gpg library

So I'm pretty new to golang and i'm struggling to get a working example going of encrypting some text with openpgp and decrypting it again. Here is what I have so far: (https://gist.github.com/93750a142d3de4e8fdd2.git) package main import ( …
stuart-warren
  • 605
  • 5
  • 14
2
votes
1 answer

Year 2038 bug, can I deviate from the OpenPGP RFC?

The RFC 4880, a document that describes the OpenPGP cryptography standard, finds its roots in RFC 2440, published in 1998 (that's sixteen years ago, supposedly before 64-bit systems emerged). Both specifications tell the same thing about how…
Diti
  • 1,454
  • 3
  • 23
  • 38
2
votes
0 answers

Decrypt file with openPGP using groovy

I want to write a script in groovy to decrypt files using openPGP. I tried to find a library that I could use for this task but was unsuccessful. Is there a source I might have omitted during my search or I need to go some alternative way that you…
MK86
  • 131
  • 1
  • 4
  • 10
2
votes
1 answer

Is there a glaring security hole in this Ruby wrapper around GPG?

The code: require 'tempfile' require 'open3' def valid_pgp_key?(unsafe_user_input) tempfile = Tempfile.new('pgp_pubkey') command = ['gpg', '--no-default-keyring', '--keyring', tempfile.path, …
SLD
  • 659
  • 4
  • 10
2
votes
1 answer

How to generate a PGP Certificate in Java

I am currently using Bouncy Castle library (1.45) for the generation of X509 Certificate (i.e. X509V1CertificateGenerator), and now I need to be able to create and import/export a PGP Certificate into/from the keystore. However, I am not seeing any…
Codrguy
  • 649
  • 1
  • 7
  • 17
2
votes
2 answers

Storing OpenPGP Keys and Encrypted Data in a Database

I've been playing around with OpenPGPjs (the Javascript port of OpenPGP) in my spare time to learn something new. To test it out, I am working on a simple web app to store and retrieve the key-pair and encrypted data from a database. Since…
Sam
  • 1,358
  • 4
  • 16
  • 30
2
votes
1 answer

BouncyCastle OpenPGP issue

I'm trying to create a signed and encrypted message using the BouncyCastle libraries, which I'm then testing out against gpg on the command line to confirm whether it's valid. However while it presents a PGP message that looks okay to the eye, gpg…
Ramo
  • 283
  • 1
  • 5
  • 15
2
votes
1 answer

Thunderbird OpenPGP

I have started to use openPGP in thunderbird (enigmail 1.4) for signing my messages But it is generating something like -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 signed message by openpgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11…
MAB
  • 67
  • 12
2
votes
1 answer

openpgp and golang

I have some problems with the documentation. Here is my program: package main import ( "bytes" "code.google.com/p/go.crypto/openpgp" "encoding/base64" "fmt" ) func main() { var entity *openpgp.Entity entity, err :=…
Bussiere
  • 500
  • 13
  • 60
  • 119
2
votes
1 answer

C# How to simply encrypt a string with a openPGP keys

I have OpenPGP pgpkey and pgpid, in C# how to simply encrypt a string using the Bouncy Castle library ? Public Key of receiver(MPI in…
user1871892
  • 21
  • 1
  • 3
2
votes
1 answer

Fix Gpg4Win PGP encrypted binary files corrupted by upload to CoreFTP server using VB .NET

This post is similar to an earlier post about preventing the corruption of PGP binary files when transferring those files to an FTP server using C# (http://stackoverflow.com/questions/7353993/ftp-changing-pgp-file-during-transfer-in-c-sharp), though…
1
vote
0 answers

Compatibility between OpenPGP and ObjectivePGP

Building an encrypted system which uses openPGP for keys generation, encryption, decryption for browsers and ObjectivePGP for ios app for the same functions. The issue I am facing is when I generate keys using objectivePGP on my ios app and try to…
Aman Gupta
  • 23
  • 6
1
vote
0 answers

NodeJS - PGP encryption on top of gzip a text file

File is generated successfully but when trying to open file, it is in invalid gzip format after decryption. Shows error unsupported format and failing to decompress. zlib.gzip("Hello World", async (err, compressedData) => { if (err) { …
1
vote
1 answer

Why does Spongy Castle ignore the bcpg and openpgp packages

Does anyone know why SpongyCastle is explicitly excluding openpgp and bcpg packages (amongst others) from being built? I would like to get OpenPGP support working and I will require a number of those classes to do so. You can find the exclusions in…
senecaso
  • 273
  • 2
  • 10
1
vote
1 answer

Streaming decrypt using openpgpjs library consumes too much memory for large files

I am using openpgp library to encrypt and decrypt a file inside a React component. Encryption works as expected with less memory usage but decryption takes too much memory. Library version that I am using is: 5.7.0 Below is the code sample with…
Sumit Sahoo
  • 2,949
  • 1
  • 25
  • 37