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

password-store with git submodules

Git submodules in pass work quite well for using different sets of passwords. My only issue is that I cannot issue git submodule commands through pass. For example, pass git submodule foreach git pull returns: fatal:…
Harrison Powers
  • 359
  • 1
  • 7
  • 16
5
votes
2 answers

How to encrypt for OpenPGP keys using C#?

I've been tasked with adding in a system that allows my company to encrypt files so that we can send them to a third party and they can run some operations on our data. The third party has given me a public key in this format, -----BEGIN PGP PUBLIC…
Brandon
  • 281
  • 2
  • 17
5
votes
1 answer

Add a nickname to a gpg key

I want to add, additionally to my real name, my nickname (or alias or AKA) which I am better acknowledged on the web; into my public pgp key. What's the proper way to get this done on gpg?
Akronix
  • 1,858
  • 2
  • 19
  • 32
5
votes
2 answers

Download key with `gpg --recv-key` and simultaneously check fingerprint in a script

How can I import a key via gpg --recv-key and check it's fingerprint automatically? Ideally, I would use gpg --recv-key $fingerprint directly, but gpg only recently added a check, that the received key(s) actually had the correct fingerprint instead…
Perseids
  • 12,584
  • 5
  • 40
  • 64
5
votes
1 answer

How to automatically verify all committers PGP-sign their commit

Github supports signing commits with a PGP key. We have an open source project, that accepts contributors from people without PGP keys. Security is essential for us, and so we decided that each person who merges pull requests will sign the merges…
ripper234
  • 222,824
  • 274
  • 634
  • 905
5
votes
2 answers

Python and PGP/encryption

i want to make a function using python to encrypt password by the public key. at the user end i need to install PGP software which will generate the key pair .i want to use public key only for encryption and private key for decryption. The problem…
trapti
4
votes
1 answer

How to get public key from private in gpg without using local storage (under ~/.gpg)?

Look to Subj: How to get public key from private in gpg without using local storage (under ~/.gpg)? This solution does not satisfy requirements: $ gpg --import priv.key $ gpg --export $KEYID >pub.key $ gpg --delete-secret-and-public-key…
gavenkoa
  • 45,285
  • 19
  • 251
  • 303
4
votes
1 answer

PGP: Where can I find a list of supported algorithms (name+number)?

When you generate an PGP key-pair, you can choose a Public-Key algorithm: $ gpg --expert --full-gen-key gpg (GnuPG) 2.2.19; Copyright (C) 2019 Free Software Foundation, Inc. Please select what kind of key you want: (1) RSA and RSA (default) …
Pierre
  • 2,552
  • 5
  • 26
  • 47
4
votes
2 answers

Use PGP to decrypt a file stored on SFTP server with Python

I have an SFTP that I set up with *.PGP Files on that server. The package I use to connect to the SFTP from python is Paramiko as shown below. import paramiko transport = paramiko.Transport(json_data["host"],…
4
votes
1 answer

OpenPGP tag 18/19 description confusion

Can someone please clear up a bit of MDC and data encryption for me? in rfc 4880, it says: The plaintext of the data to be encrypted is passed through the SHA-1 hash function, and the result of the hash is appended to the plaintext in a …
calccrypto
  • 8,583
  • 21
  • 68
  • 99
4
votes
1 answer

How to trust a bunch of public pgp keys you trust without doing it manually?

I just need to trust a bunch public keys to use it with pass. Unfortunately I didn't find an easy way to trust all the public keys I've stored locally. The procees I found it its quite expensive in order of time: > gpg --edit-key XXXXXXXXXXXXXXXX …
Zioalex
  • 3,441
  • 2
  • 33
  • 30
4
votes
1 answer

.net core PGP Encryption Decryption

Running into error on the void Encryption(). public void Encryption() { #region PGP Encryption PgpEncryptionKeys encryptionKeys = new PgpEncryptionKeys(@"C:\Keys\PGPPublicKey.asc", @"C:\Keys\PGPPrivateKey.asc", "password"); PgpEncrypt…
Bakari Lewis
  • 91
  • 1
  • 1
  • 11
4
votes
1 answer

sbt release to Maven central fails with no public key error

I tried to release better-files to Maven central and I am getting this error. I tried this on fresh checkout on multiple different machines. My steps: Step 1: Generate keys > sbt sbt:better-files-root> pgp-cmd gen-key Please enter the name…
pathikrit
  • 32,469
  • 37
  • 142
  • 221
4
votes
1 answer

How do I encrypt an email using a Yubikey?

I am fairly new to PGP encryption. I generated a new key pair last week on a Yubikey, while previously I had only used a private key that I generated on my machine. I use thunderbird enigmail for key management. This is probably a stupid question…
4
votes
1 answer

Decrypt PGP encrypted file with passphrase only in Java

I have a PGP file named 'filename.txt.pgp' that I need to decrypt. When I run decryption from command-line it asks me only for the password. I use gpg command: gpg filename.txt.pgp The password is enough and my file is decrypted. I can read it's…
Igor
  • 53
  • 1
  • 5