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

How to decrypt large files in chunks?

I am trying to decrypt a large file with PgPy and had this problem: OverflowError: integer 2632261350 does not fit '32-bit int' Clearly the size of the file is not suitable, so I would like to know how I can decrypt large files in chunks? we can…
Arrajj
  • 167
  • 2
  • 12
2
votes
1 answer

Problem with gpg --recv-keys

I am trying to install cassandra using apt-get on Ubuntu. I added this to my /etc/apt/sources.list deb http://www.apache.org/dist/cassandra/debian unstable main deb-src http://www.apache.org/dist/cassandra/debian unstable main Then: sudo apt-get…
jnbdz
  • 4,863
  • 9
  • 51
  • 93
2
votes
2 answers

Converting PGP public keys to RSA Public key XML Format

I am faced with a problem on converting PGP Public keys to RSA Public Key format. Following public key in PGP format that need to be converted to XML format. Please help me, if any of you had encountered such scenarios. -----BEGIN PGP PUBLIC KEY…
AbrahamJP
  • 3,425
  • 7
  • 30
  • 39
2
votes
0 answers

How do you use sbt-pgp with a different command to call gpg? I have tried gpgCommand with no success

I am using sbt-pgp in our ci pipeline and want to use Global / gpgCommand := to specify a different gpg version to call than the OS default. OS default path uses gpg version 1.x and I want to call gpg2 for version 2.x. Following the README.md of…
Softinio
  • 638
  • 1
  • 6
  • 19
2
votes
0 answers

Can't import pgp key using gnupg

I'm trying to import a public key provided to me in python but for some reason the code always says "no fingerprint found" for this key. I've been able to use the same code to import another public gpg key. The only difference is that the one i was…
hpatel
  • 21
  • 1
  • 3
2
votes
2 answers

Import PGP public key from Fingerprint

I have the fingerprint 71A3 B167 3540 5025 D447 E8F2 7481 0B01 2346 C9A6 and I want to download the public key to verify the archive. I'd like to download the key from terminal, and I try to use that command: gpg --search-keys "71A3 B167 3540 5025…
monkeyUser
  • 4,301
  • 7
  • 46
  • 95
2
votes
3 answers

PGP encryption from PHP

If I run the command gpg -e -r john@doe.com my_secret_file.txt from unix command prompt, it is working fine. But when I try to use the same command using PHP, it's not working : $gpg = '/usr/bin/gpg'; $recipient = 'john@doe.com'; $secret_file =…
2
votes
0 answers

PGP Encryption & PGP Decryption

I'm having trouble decrypting files using the BouncyCastle OpenPGP API. I followed this post: http://rafayal.blogspot.com/2009/06/pgp-decryption-with-c.html to decrypt files. However, I am getting an error that states that the KeyID cannot be null…
user745844
  • 23
  • 2
  • 6
2
votes
1 answer

PythonGnuPG generate keys, encrypt and decrypt a message

Using Python-GnuPG I want to Create PGP keys Encrypt a message Decrypt a message Currently code looks following: import string import random import gnupg random_string_length = 20 random_gpg_key_passphrase = "".join( …
Jakub Pastuszuk
  • 928
  • 4
  • 12
  • 31
2
votes
1 answer

How to access PGP keys from Kleopatra using C#

I have a PGP key pair that I created with Kleopatra and I want to know how I can access it using C#? I am using the PgpCore library to decrypt a file, but it appears I need to feed it the key file and I don't know where it is stored on the machine…
ryansin
  • 1,735
  • 2
  • 26
  • 49
2
votes
3 answers

GnuPG is installed but python is not finding it in runtime

pip install GnuPG says that the requirement is already satisfied but when I run a python script with GnuPG it says GnuPG is not installed.
2
votes
1 answer

How can I verify the Git-Installer via Hash?

Is there any way to verify the Windows-download? I couldn't find a hash on the official git site
John
  • 23
  • 5
2
votes
1 answer

Keybase private PGP key export fails but decryption is working as expected. So where is my private key?

I use Keybase and I want to export my private PGP key, but I don't know where it is. Encryption and decryption with keybase pgp [encrypt|decrypt] works as expected with messages sent to and from other people, but neither keybase nor gpg know where…
John Blackbourn
  • 791
  • 1
  • 8
  • 14
2
votes
1 answer

Using S/MIME or PGP - are the single attachments hashed/signed?

I just had a discussion about integrity of S/MIME and PGP. I wonder if the different parts (eg attachments and body) are signed/hashed/fingerprinted separately or is this only applied to the resulting container? I checkd some RFC and websites and it…
Volker
  • 428
  • 4
  • 15
2
votes
1 answer

PGP Encryption without files

I 'm doing PGP Encryption for a csv file, below is the code where I 'm stuck, basically below code works if the public key is in local text file however when I 'm having the same file in Azure blob storage, I download the contents in Memory stream…
harsh
  • 43
  • 1
  • 6