Skip to main content

All Questions

Tagged with
8 votes
1 answer
3k views

How to use GnuPG to get the smallest possible output (symmetric encryption)?

I'm trying to produce very small OpenPGP-encrypted files that can be embedded into QR codes. However, in comparison to for example OpenSSL, GnuPG seems to produce very large results for a simple ...
Daan Bakker's user avatar
5 votes
3 answers
2k views

How does public/private key cryptography work, who generates the key pair?

I have a requirement to encrypt a file, get it to an external partner who will then decrypt the file using a key. My "basic" understanding is that I can generate the public and private keys, encode ...
Steve Ward's user avatar
4 votes
3 answers
1k views

Handling and security of GnuPG private key

I am new GnuPG, thus, this might be a silly question. Yet: I want to encrypt my emails, thus using gpg4win. Alongside I use Kleopatra, a tool for creating my own certificates and managing the public ...
verticoe's user avatar
3 votes
1 answer
2k views

Why does PostgreSQL's pgp_sym_encrypt return different output although invoked for the same input?

I am getting different results while executing PostgreSQL's pgp_sym_encrypt command with same plaintext and passphrase as input. When decrypting those different results with the same passphrase, I get ...
Ashish Patel's user avatar
3 votes
1 answer
95 views

Should my OpenPGP key used for storing documents in the cloud expire?

I plan on doing a mass migration of all my local files to various cloud services since space is pretty cheap these days. I figure I should probably encrypt my data before I upload it, which is better ...
CircuitsOhTime's user avatar
3 votes
1 answer
543 views

GPG subkey seems to have different password

I have recently created a new OpenGPG key with Thunderbird and exported it to use it with gpg. However, I cannot decrypt anything outside Thunderbird because my subkey - which is used for encryption - ...
JoJota's user avatar
  • 33
2 votes
1 answer
1k views

Are OpenPGP-encrypted files vulnerable to data corruption?

I have used GnuPG to encrypt some long-term backups, but I am concerned whether over time data corruption might make it impossible to recover the archives. Can you decrypt partially corrupted OpenPGP ...
chris.fy's user avatar
2 votes
1 answer
4k views

How to encrypt and sign a file using OpenPGP on Mac

I fear I may have sent a message without encryption when I thought it was being encrypted and signed. I don't use OpenPGP on a Mac too often (I can't remember the last time), so I'm trying to ...
jww's user avatar
  • 12.3k
2 votes
1 answer
3k views

How to convert gpg4win's binary to ascii, with Notepad++

I can reliably convert gpg4win's ascii to binary using Notepad++ option "Base64 Decode" (credit: James K Polk). Works every time. But when I attempt the reverse, i.e. convert binary to ascii, it ...
get_going's user avatar
  • 115
2 votes
1 answer
3k views

Is GnuPG symmetric encryption vulnerable to brute force attacks on the passphrase?

The handbook suggests that symmetric encryption is appropriate (and therefore not less secure than public key encryption?) when only you need to access the plaintext. But according to this post, ...
kgmstwo's user avatar
  • 23
2 votes
0 answers
3k views

Convert GPG private key to QR code?

How can I generate a QR code from a OpenPGP/GnuPG private key on Windows 7? Context: I created a private key pair on a Windows computer and want to import the key to my phone. The phone app has ...
get_going's user avatar
  • 115
1 vote
1 answer
4k views

How to query for all recipient OpenPGP keys with GnuPG?

I cannot find a reliable method for asking gpg the list of (public) keys used to encrypt a given file. One plausible solution doesn't work for me -- it never lists my key: gpg --list-only --no-...
crimson-egret's user avatar
1 vote
1 answer
11k views

GPG2 Encryption - No public key error

When I generate my keys using gpg2 --gen-key and then I try to try to encrypt the file using gpg2 --batch --yes -r [email protected] --always-trust --homedir . -e test.text I get an error "...
Steve Ward's user avatar
1 vote
2 answers
787 views

GnuPG: Add passphrase to passphrase-less key

I've created my PGP keypair using an online site. The thing is, I didn't provide a passphrase upon creation; The site didn't make supplying a passphrase mandatory. Since this key is passphraseless, ...
Miguel Nogueira's user avatar
1 vote
1 answer
300 views

Do I need a PGP key?

I've recently got familiar with the concept of OpenPGP public-private keys, and how to use GnuPG tool to manage PGP keys. I have three questions: 1- Is it necessary for me to have a PGP (or an ...
Hedayat Mahdipour's user avatar

15 30 50 per page