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

Equivalent of gpg --sign in golang?

I currently have a Perl script that performs a PGP sign on an email address to produce an obfuscated token. The Perl script uses the command line utility GPG version 2.2.8 (on MacOS). I would like to convert this functionality to Go. The relevant…
2
votes
0 answers

PGP encryption and decryption in java

I have the public key which is shared by client for PGP file encrpytion. I am using Java 1.7 and this question is very similar to this one. Unfortunately none of those solutions are working for me or outdated. Can someone please share the working…
Vamsidhar
  • 822
  • 11
  • 24
2
votes
1 answer

How to sign public PGP key with Bouncy Castle in Java

I'm writing PGP server to generate keys for users. I want to sign any generated PGP public key with my private key in Java with Bouncy Castle, to make it trusted for my users. I have no problems with generating key pair - it works perfect. I tried…
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

in-place encryption with gpg

Is it possible to force gpg to do in-place encryption? In other words, to overwrite the source (unencrypted) file with encrypted data? This is how ccrypt(1) operates by default.
Adam Monsen
  • 9,054
  • 6
  • 53
  • 82
2
votes
2 answers

IPSec vs OpenSSL vs PGP

IPSec is employed at the IP level, SSL at the transport level and PGP at the application level. In some lecture not it says: IPSEC: Most general solution but least flexible SSL: Still very general and some flexibility PGP: Least general but very…
Andrew
  • 77
  • 2
  • 3
2
votes
1 answer

Difference between PGP and SMIME

I am wondering why is there a need for two secure email standards. If I am not completely wrong, nowadays PGP and SMIME essentially provide more or less the same functionality. In the past, the difference was that PGP build on a web of trust,…
Andrew
  • 77
  • 2
  • 3
2
votes
2 answers

Kleopatra No secret key

I support an application who call a CMD line to decrypt a file. The application is a .exe file that is called by the Windows Task Scheduler and is execute as the same user who have all right. The application run every week day in the evening at…
Bradford1138
  • 65
  • 1
  • 1
  • 7
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

PGP Compress and Encrypt

I’m using Bouncy Castles to compress and encrypt some data. The compress method fails with a null reference exception. The following method performs compression: private byte[] Compress(byte[] data) { using (MemoryStream…
markpirvine
  • 1,485
  • 1
  • 23
  • 54
2
votes
1 answer

How to get user id from PGP public key in Java?

I am using PGP to encrypt files and then transfer using apache-camel. I was able to encrypt and decrypt using camel-crypto. PGPDataFormat pgpDataFormat=new…
Gangaraju
  • 4,406
  • 9
  • 45
  • 77
2
votes
2 answers

Signing and verifying text with key pairs using Javascript

Is there any library available (or well-written algorithm reference I could implement) that would allow me to sign a piece of text with a private key, preferably my existing SSH (RSA) or PGP key? My goal is to write a bookmarklet to sign my blog…
Steve Landey
  • 2,609
  • 25
  • 25
2
votes
2 answers

Using the same PGP key on multiple servers?

I guess this question falls under “best practices” for PGP keys. First a very quick background. I lead an open source project, and have been getting numerous requests to publish to the “Apache Maven” repository. To do this, I need to sign each…
JeffHeaton
  • 3,250
  • 1
  • 22
  • 33
2
votes
1 answer

Data encryption at rest in Java Application

I have a Java application (an ESB - Enterprise Service Bus) which deals with customer sensitive data and have a requirement of supporting Data encryption at rest in order to prevent data abuse. The application stores customer data for processing on…
Aman
  • 1,170
  • 3
  • 15
  • 29
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