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

PGP/GPG Signed Python code

I'd like to (PGP/GPG) sign python code. Yes, I have read this and many other sites that talk about protecting and obfuscating python code - this all is not what I want. I DON'T want to obfuscate code. I want customers and users to see the code, they…
nerdoc
  • 1,044
  • 10
  • 28
11
votes
1 answer

Several pgp signatures for one file

Basic options for file.txt sign in GnuPG is file.txt.asc signature. In our workflow I need the several signatures for file.txt - main example is Author sign and Validator sign. What is a best use-case for it for GnuPG ? Can I store both signatures…
Y.N
  • 4,989
  • 7
  • 34
  • 61
11
votes
2 answers

BouncyCastle in-memory PGP encryption in C#

I've been trying to use the BouncyCastle library to do PGP encryption/decryption. I have some code that I need to modify to use streams only - no files. I tried removing the PgpUtilities.WriteFileToLiteralData() and then making it return a stream,…
Synaps3
  • 1,597
  • 2
  • 15
  • 23
11
votes
2 answers

GPG (PGP) decryption in client side web applications

How would I be able to decrypt some encrypted data on the client side of a web application? E.g. The data is stored encrypted on the server. It was encrypted using a public GPG key. The server sends the encrypted to the client. The client needs…
Petah
  • 45,477
  • 28
  • 157
  • 213
11
votes
3 answers

PGP-signing multipart e-mails with Python

I'm currently trying to add PGP signing support to my small e-mail sending script (which uses Python 3.x and python-gnupg module). The code that signs message is: gpg = gnupg.GPG() basetext = basemsg.as_string().replace('\n', '\r\n') signature =…
Dmitry Shachnev
  • 550
  • 6
  • 17
10
votes
5 answers

Easiest way to sign/certify text file in C++?

I want to verify if the text log files created by my program being run at my customer's site have been tampered with. How do you suggest I go about doing this? I searched a bunch here and google but couldn't find my answer. Thanks! Edit: After…
user355008
  • 101
  • 5
10
votes
1 answer

using bouncy castle to create public PGP key usable by Thunderbird

I created public and private PGP keys using org.bouncycastle.openpgp.PGPKeyRingGenerator. After making a change suggested by GregS, the public key is a .asc file, and the private key is a .skr file. I need to distribute the public key at first to…
CodeMed
  • 9,527
  • 70
  • 212
  • 364
10
votes
2 answers

When and why decorate OutputStream with ArmoredOutputStream when using BouncyCastle

I'm pretty new to BouncyCastle and pgp. I've seen many articles and samples on the internet. Almost every encryption sample contains the code snipped below if (armor) out = new ArmoredOutputStream(out); It seems that my local test passed…
Yugang Zhou
  • 7,123
  • 6
  • 32
  • 60
10
votes
2 answers

Run system command in ruby and interact with it

I need to run a command on the command-line that asks for a user response. In case it helps the command is: gpg --recipient "Some Name" --encrypt ~/some_file.txt when you run this, it warns about something then asks: Use this key anyway?…
chrishomer
  • 4,900
  • 5
  • 38
  • 52
9
votes
1 answer

PGP key armored encoding in Go's openpgp package

I am trying to print a PGP public key in an ASCII armored encoding using Go's openpgp/armor package. The output I would expect: -----BEGIN PGP PUBLIC KEY BLOCK----- -----END PGP PUBLIC KEY…
max
  • 677
  • 1
  • 9
  • 34
9
votes
2 answers

Converting .asc back to .gpg

I normally wouldn't ask but I can't find the answer on SO or google. I'm using a library that accepts base64 encoded pgp public keys in string format. However, one of the components I need to convert has a key in .asc format. How can I convert it…
ShaneK
  • 249
  • 1
  • 2
  • 7
9
votes
4 answers

`git -S -m commit` failing to ask for password — Signing after moving from GPG mac to GPG shell

I am setting up new machine (macOS Sierra) for web development, and I have done brew install gpg which has installed gpg2 and gpg-agent. I have copied my keys from ~.gnupg on my old mac. I am not installing the mac interface GPG Suite which I had on…
9
votes
3 answers

What happens to OpenPGP-signed git commits after key expiration?

If I sign a git commit with an OpenPGP key that has an expiration date, what does that mean for people looking at that commit after the expiration date? Should all keys used for commit signing like this be permanent? What if the verifying party have…
Captain Man
  • 6,997
  • 6
  • 48
  • 74
9
votes
1 answer

Need example for BouncyCastle PGP File encryption in C#

I'm trying to encrypt files using my private key (in ascii format) and any other public key (also in ascii format). The BouncyCastle library looks like the correct thing to use, but I cannot find documentation for C#. Could anyone please assist me…
Daniel Brink
  • 2,434
  • 4
  • 24
  • 26
9
votes
1 answer

Are GnuPG subkeys to be sent to the keyserver instead of the master key?

Ok, so I've generated my PGP keys using GnuPG and sent the key to the keyservers. But then I found that GnuPG generates a pair of keys, one main and one subkey as I understand it. Did I make an error by uploading my main key to the keyserver using…
Matt
  • 161
  • 2
  • 9
1 2
3
54 55