Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pgp]

The OpenPGP encrypted data format (RFC 4880), and its implementations PGP and GnuPG.

-3
votes
0answers
22 views

Decryption pgp secret key possible? [on hold]

i need help. i have a public and secret key at pgp. for now, i have a massage encrypted BY publ.key, i decrypt it by secret key and send massege to "bad guys", so can they decrypt my communications ...
1
vote
1answer
40 views

About the security of GnuPG private key on-disk storage

GnuPG on-disk storage of secret key material is encrypted with AES-128, with an encryption key generated via an iterated and salted SHA-1 hash of the given passphrase. Is this usage of the SHA-1 hash ...
-1
votes
1answer
23 views

Converting a message from one PGP key to another PGP key

I have a message $M$ that is encrypted using a public key $P_1$. I lost the associated private key $p_1$. I have another public/private key pair $(P_2, p_2)$. Is it possible to "translate" the ...
0
votes
1answer
43 views

Book request about elliptic curves, RSA and DSA

I understand that this question can be hardly downvoted, but so be it if someone gives me really useful references :) I wanna learn difference (deeply) between RSA, DSA, and ECC, especially I am ...
2
votes
2answers
34 views

Mathematical explaination of file encryption for multiple persons with multiple keys

Let's say I want to encrypt a document which only can be read by John, Mike, and Dave. This can easily done with PGP/GPG: Import John‘s, Mike‘s, and Dave's public key Encrypt the document using those ...
1
vote
1answer
31 views

Where can I find the standard definition for GPG ECDSA signature?

I am playing around with GPG which I'd like to use to sign an integer and use the resulting signature binary in another piece of code. So far I have created a simple PGP packet parser with which I ...
1
vote
2answers
216 views

Generate PGP keys very very fast

Is there a way to generate thousands of PGP keys at a very very fast rate? I am generating thousands of 3072-bit PGP keys looking like part of a personal research project. Obviously, this is a very ...
1
vote
1answer
57 views

Is there any point to encrypting a file if it's transferred via ssh?

Suppose I have two machines which can ssh into each other. Is there very little point in using gpg with a password protected symmetric cipher to transfer a ...
4
votes
1answer
528 views

Do PGP keys with expiration date set expiration date in Encrypted messages too?

So I am little confused about a type of encryption I read about. You can encrypt your E-mails and pretty much all kind of information using PGP key pairs. However, I am confused if an encrypted ...
0
votes
1answer
98 views

libsodium vs gnupg curve25519 compatibility

I am trying to create deterministic GPG keys based on cryptosteel. I have implemented a library for (de)serializing PGP packets and am now trying to use keys generated in libsodium for import in GPG. ...
1
vote
1answer
569 views

How Secure is gpg Command Using Symmetric AES-256 From Being Cracked

How secure is any data encrypted using the following command: gpg -o *encrypted_output_file_name* --symmetric --cipher-algo AES256 *file_to_be_encrypted* Can ...
2
votes
0answers
60 views

Concept for a RSA “repeater”. Is it sensible?

I have been using RSA signed/encrypted mailing a lot recently. Naturally, I wanted to use RSA mailing also on my phone, not only on my computer. However, I feel uneasy having my private key on my ...
3
votes
1answer
66 views

Pseudonymous publication of a series of texts online when a bad guy is expected to join in with fakes: will this approach to PGP verifiability work?

Alice wishes to publish under a pseudonym a series of texts online. She expects the texts to circulate, and she will not include any way of contacting her. Bob will not know the identity of the ...
0
votes
1answer
109 views

Format of hybrid crypto envelope structure?

From posts including the accepted answer to How to encrypt file with RSA and AES that anyone with RSA key can decrypt them? hybrid crypto (AKA envelope encryption) a GPG-encrypted file has an ...
0
votes
1answer
50 views

Send content to owner of gpg public key, nested content symmetric encryption

If I want to encrypt a text content file using a symmetric algorithm like AES, is there a standard format gpg will expect, where it can detect a symmetric key (encrypted with recipient gpg public key ...
26
votes
2answers
2k views

Why did TLS 1.3 prohibit PGP authentication?

There is a specification, in Informational(!) RFC 6091, for using PGP keys in TLS authentication, although I don’t think it has ever been implemented outside of GnuTLS (it’s certainly not in OpenSSL). ...
2
votes
1answer
92 views

Is it safe to publicly expose PBE-protected PGP secret keys?

I am working on a PGP scheme where a private key is created offline (and in volatile memory) and must be reused on very rare occasions to sign a piece of exportable data. The private key is locked ...
2
votes
1answer
135 views

Why does gnupg create 4 separate keys and what does sub and ssb mean?

When using gpg to create a single key, I get: ...
2
votes
0answers
35 views

GPG Sub Key Renewal Questions

Last year, I followed this guide to create two GnuPG Smart Cards; one card with the Primary Key and the other card with the Sub-keys. I noticed that the sub keys were close to expiring so I renewed ...
-1
votes
1answer
70 views

Question About ECC Primitives (GnuPG)

In version 2.1, GnuPG featured primitives that use elliptic curves. For encryption, one option was ECDH, which confused me. I thought ECDH was for key agreement, not public key encryption. How does ...
9
votes
0answers
204 views

What was the BassOmatic cipher, and what made it so weak?

According to Wikipedia, this homebrew cipher was originally used in PGP, before Phil Zimmermann replaced it with IDEA. Supposedly, insecurities in the algorithm were pointed out to him, leading to ...
2
votes
1answer
128 views

Revoke a GPG key using previously generated revoke certificate after renewd (change expiration date)

I have few sub-questions Do secret keys get expired, or just the public key gets expired? Do I have to back up the master sec key each time I renew it? For an ...
0
votes
1answer
57 views

Understanding certificates for public keys with subkey

I have a openpgp key with 3 subkeys: ...
4
votes
1answer
94 views

GPG encrypt performance degradence for thousands receipients [closed]

I plan to use GPG to encrypt a small file (32KB) for very many recipient public keys (few thousands). I tested GPG with RSA and then ECDH public key encryptions. If RSA is very slow, with ECDH (nist ...
5
votes
0answers
65 views

Why is recipient hashed in this Sign/Encrypt/Sign proposal?

Own research In my journey into trying to understand PGP, and public key singing and encryption as a whole, I came across this answer on CE. It is an answer to a question with the title: Should we ...
51
votes
2answers
9k views

Is the software that uses PGP broken, or is it PGP itself?

PGP is all over the news (even on TV) and there seems to be a lot of confusion about it. For the time being, people face articles like Attention PGP users: new vulnerabilities require you to take ...
4
votes
1answer
93 views

Where is Web of Trust being used?

I've been trying to find specific examples of where Web of Trust is being used today, but there seems to be little information about this. Are there any businesses using Web of Trust today? What do ...
0
votes
1answer
59 views

what is the difference of Pretty Good Privacy and Gnu Privacy Guard

i want to know about the difference. of this two. because as far as i know many cryptocurrency users. use this for more secure transactions specially when the amount is huge.. to prevent identity ...
1
vote
1answer
917 views

PGP Encryption and signing

There is a requirement for me to both encrypt a file with the clients public key provided to us and sign the same file with our (my own) private key which they have the corresponding public key for. ...
1
vote
1answer
57 views

Hash match vs PGP to ensure integrity

What is the difference? I found it quite hard to check for integrity using Gpg4win. Checking for hash was easy with Online MD5 & SHA1 Hash Generator For File. Is there any advantage to use Gpg4win?...
0
votes
1answer
61 views

GPG Details of Anatomy

What is the "created" field below? How can you translate that into an actual date? Source: https://davesteele.github.io/gpg/2014/09/20/anatomy-of-a-gpg-key/
4
votes
1answer
206 views

Weaknesses in vanity PGP keys

The program Scallion can generate vanity PGP keys and .onion addresses using the following method: Generate RSA key using OpenSSL on the CPU Send the key to the GPU Increase the key's public ...
3
votes
1answer
1k views

AES 128 GCM - dynamic key with static IV/nonce

I'm working on a project to upgrade an existing system that currently uses RC4 to encrypt a payload with a random session key. The session key is then encrypted with asymmetric public key encryption (...
-1
votes
1answer
101 views

pgpdump alternative for gnupg 2.x

I want to see gpg2 key parameters packets. pgpdump v0.32 doesn't support gpg2 (especially elliptic curve cryptography packets) and "gpg2 --list-packets" doesn't show "secret" key parameters. Is ...
4
votes
2answers
7k views

Why is there the option to use NIST P-256 in gnupg?

I am surely not an expert on the field , but I heared some people say that NIST P-256 is somehow backdoored . I don't know about the seriousness of this claim . Maybes it is just some conspiracry ...
1
vote
1answer
222 views

Is it actually possible to secure data with gpg DSA keys?

I think GPG is difficult to understand . All the different versions and policies and algorythms . But today I got really confused . I tried to create a 3072 bit DSA key ( which as far as I undestand ...
8
votes
2answers
2k views

Why is c25519 in the GPG “expert” options?

The only way to access the c25519 curve in GPG is through gpg --expert --full-gen-key. Why is that? From my knowledge, Curve25519 is one of the most secure (and ...
-2
votes
1answer
73 views

Is OpenPGP used for purposes other than e-mail encryption and signing?

OpenPGP is generally used for encrypting and signing e-mails. Are there any other use cases? If yes, which cases?
5
votes
1answer
509 views

Is it possible to decrypt only a portion of a gpg encrypted file?

I have very large encrypted files that I need to process in a highly parallel fashion (the files are composed of distinct records of data). Currently, the process begins by first decrypting the data, ...
1
vote
1answer
849 views

What do GnuPG sign-only keys mean?

In GnuPG, there is the option of making keys which are "normal" (encrypt and sign) and sign-only keys . But what sense does that make in regards of DSA? Correct me if I am wrong, but I think DSA keys ...
0
votes
1answer
100 views

What real life OpenPGP public key has the biggest amount of signatures on it? [closed]

Have you ever seen key with dozens or 100+ signatures? Link to it will be very much appreciated. I have read that old Zimmermann's key had a lot of signatures on it, but I was not able to find it. In ...
1
vote
1answer
65 views

Is it possible to sign OpenPGP key without consent of a key owner? If yes, can unsolicited signatures be removed from a key?

For example, I have my key listed on a key server. On one day a key issued on the name of Julius Caesar signs my key. Obviously this key is a fake key and I want to remove its signature from my key ...
2
votes
0answers
58 views

How does OpenPGP handles situation when signatures on one OpenPGP key contradict each other?

For example, I was on a key signing party. After a party, one person signed my key with full trust and sent this signature to me by email. Then that person changed their mind and signed my key with ...
1
vote
1answer
483 views

Multiple signatures on one OpenPGP key. How are they combined? Where are they stored in OpenPGP certificate?

When one OpenPGP public key is signed multiple times by different keys, how these multiple signatures become visible on one OpenPGP certificate/key? For example, I participated in a key signing party ...
-1
votes
1answer
64 views

What happens if you use a password longer then the hash of the KDF?

What happens if you use a password longer then the hash of the KDF? For example in GPG symmetric a password which is 200 characters . On AES-256 ( I don't know the maximum length of the KDF output).
2
votes
2answers
103 views

Can GnuPG be used with a login system?

I was thinking about creating a proof of concept for the following type of website login system. Instead of passwords being used, on account creation, a public GnuPG key is uploaded to the server, ...
1
vote
1answer
318 views

What is the key derivation function used in GnuPG, and how long may its input be?

I am currently working with GnuPG on a new project of mine. It would be very useful to know two things for that, which are not described in the manual: What is the maximum input size of a symmetric ...
5
votes
2answers
991 views

What exactly does s2k do in gpg

So I recently discovered the --s2k mode in gpg. Sadly it is not very well-documented. I mean, what is ...
-1
votes
1answer
111 views

Using caesar crypt, then encrypting the output with pgp, then encrypting that with aes256

Is that possible? Well, of course it is, but if you decrypt it, will it show the actual message in the final output? This isn't me actually doing this in practice, just if it is possible. Lets say ...
2
votes
3answers
1k views

PGP-key-based authentication system

Consider we implement remote service, which will be accessible via API(i.e. restful http or grpc). All users are authenticated via pgp keys and each user has pgp keypair. How to implement ...