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

Length of data to hash for PGP

I have finally managed to verify some simple PGP signed message blocks. However, I discovered that for some reason, my implementation limits me to verifying data that is 9-16 bytes long. no less. no more. is there some instruction somewhere…
calccrypto
  • 8,583
  • 21
  • 68
  • 99
6
votes
2 answers

Accessing pgp encrypted file in Ruby

I have a pgp-encrypted file that I need to extract data from at runtime. Can this be done by decrypting to memory only (as opposed to creating a decrypted file and deleting it when done)?
LK__
  • 6,515
  • 5
  • 34
  • 53
6
votes
2 answers

Store PGP (public) keys in java keystore - Bouncycastle

I am using bouncycastle (JAVA) for signing, encryption, decryption and signatures' verification in implementation of SSO. I have raw PGP public and private keys and I need to store them in Java keystore. These PGP public keys have no certificate. I…
Juraj Martinka
  • 3,991
  • 2
  • 23
  • 25
5
votes
1 answer

PGP Service for .NET Allowing Arbitrary Keys

I am in need of a PGP service for .NET that will provide the following: Encryption/decryption of files provided as byte arrays and/or streams (e.g. writing to hard drive and having the service read it is unacceptable) Use of arbitrary keys passed…
eouw0o83hf
  • 9,438
  • 5
  • 53
  • 75
5
votes
1 answer

Sign a multipart mail using PGP/MIME

I'm trying to sign a mail using PGP in php. I could bring the boundaries and headers to work correctly but the mail signature isn't valid (as Thunderbirds Enigmail states). My question here is what part is to sign and what is to take attention to…
Hikaru-Shindo
  • 1,891
  • 12
  • 22
5
votes
1 answer

Is it possible to export a GPG private key without passphrase being provided in a prompt?

I would like to automate a GPG private key export so it runs without user interaction. gpg --export-secret-keys my@email.com I tried providing --batch --passphrase-fd 0 arguments both with passphrase being passsed as: an argument --passphrase…
ps-aux
  • 11,627
  • 25
  • 81
  • 128
5
votes
4 answers

Simple way to implement public-key cryptography in C++?

I want to be able to sign a file. By that I mean that the recipient can check that the file is indeed from me and can view its content. Is there any simple way to do that in C++? I just had a look at the PGP article on Wikipedia but they lost me…
laurent
  • 88,262
  • 77
  • 290
  • 428
5
votes
0 answers

PgpCore Error - "Secret key for message not found."

I am using PgpCore nuget package for PGP encryption and decryption. The case I encountered is as follows, I encrypt a file with EncryptAndSign method as follows. using (PGP pgp = new PGP()) { pgp.EncryptFileAndSign(fileNameToEncrypt,…
Umut Gür
  • 369
  • 1
  • 4
  • 18
5
votes
2 answers

Does Azure's Key Vault support PGP key encryption?

I would appreciate clarification and advice on the following: i am working on secure file transfer using SFTP protocol. We use PGP public/private key pair for file encryption and decryption . for a time being we keep our public/private key in local…
geekHarry
  • 53
  • 1
  • 4
5
votes
1 answer

How to decrypt a PGP file using Public Key in PGPy

I have a Public shared to me and I'm loading it as shown below: key_path = os.environ.get('ESB_FILES_PUBLIC_KEY') key, _ = pgpy.PGPKey.from_file(key_path) I try to decrypt the file using this key message_from_file =…
Cheruiyot Felix
  • 1,557
  • 5
  • 26
  • 42
5
votes
1 answer

gpg: --sign, --clear-sign, --detach-sign

I am making this question because I didn't find a clear explanation about the difference between these 3 gpg options: gpg --sign file # produces file.gpg gpg --clear-sign file # produces file.asc gpg --detach-sign file # produces…
sealmove
  • 57
  • 3
  • 5
5
votes
1 answer

PGP Encryption with BouncyCastle C# causes invalid key warning on signature verification

We need to PGP encrypt files and send them over FTP to a third party. The files are encrypted with the DH/DSS public key of the third party and signed with our private key. The third party have our public key and their own private key. The…
Kim Major
  • 3,681
  • 1
  • 22
  • 20
5
votes
0 answers

Init GnuPG python, keys aren't imported

I'm trying to init gpg like so: BIN = C:/cygwin64/bin/gpg.exe HOME = C:/cygwin64/home/Administrator/.gnupg gpg = gnupg.GPG(binary=BIN, homedir=HOME) My key rings are located in C:/cygwin64/home/Administrator/.gnupg but whenever I use the…
Baptiste Arnaud
  • 2,522
  • 3
  • 25
  • 55
5
votes
1 answer

Should we share the public key for checking signing in the git repository?

In the book Pro Git, Tagging Your Releases: It shows a way to collect the public key into a blob in git,so users who sync it can add that public key and to verify the signed tag. Is this way actually safe? Someone can change the public key blob and…
TangXC
  • 67
  • 5
5
votes
1 answer

How does clearsign option of GnuPG works?

One can sign a file using PGP, using clearsign option by performing following command in CMD gpg --clearsign filename What kind of algorithm does GnuPG uses for clearsign option such that even after performing signature, the output signature is in…
Varun Raval
  • 460
  • 1
  • 4
  • 15