Questions tagged [openpgp]

The OpenPGP standard was originally derived from PGP (Pretty Good Privacy)

OpenPGP software uses a combination of strong public-key and symmetric cryptography to provide security services for electronic communications and data storage. These services include confidentiality, key management, authentication, and digital signatures.

See also:

362 questions
1
vote
1 answer

OpenPGP Signing

I'm reading RFC4880 in an attempt to produce an implementatdion of a subset of OpenPGP (RSA signatures) using http://phpseclib.sourceforge.net/. I have the publickey and compression-literal-signature packets parsed out. I can extract n and e and…
singpolyma
  • 10,999
  • 5
  • 47
  • 71
1
vote
1 answer

how to check if gpg public key is already added to public keyring in gpg

I am developing the mvc4 .net web application where i am using GPG encryption to file encryption users will share public key with application. Application will encrypt the file using user public key and application private key. user public key will…
A_m0
  • 974
  • 2
  • 17
  • 45
1
vote
0 answers

OpenPGP signing with BouncyCastle giving incomplete message

I am trying to implement OpenPGP signing of a byte array (could also be a string, shouldn't be important as the source is JSON) but I'm getting erroneous output from the Java BouncyCastle implementation. I was testing with and am wanting to emulate…
Mud
  • 72
  • 7
1
vote
0 answers

Why file to be encoded and decoded file is not equal? encoding with openpgpjs

I tried to encode and decode file, but input file doesn't match the output. (via openpgp#204) I tried to do this input.tar.gz -> bin -> encrypt -> medium.txt -> decrypt -> bin -> output.tar.gz with this code, but input.tar.gz is not equal to…
Vladimir Starkov
  • 19,264
  • 8
  • 60
  • 114
1
vote
3 answers

Passing value to prompt open by an exe via batch file

I'm trying to use OpenGPG and when trying to decrypt something It opens up a prompt for the password. Now I'm trying to run this automatically therefore none to enter password. So My question is how do you pass in the password to this new prompt…
1
vote
1 answer

Pycrypto OpenPGP encryption: Why is there a 16byte limit to the key, what part of the key do I provide to hit 16 bytes?

I'm trying to encrypt a file using OpenPGP in python via the pycrypto application. I've been following the sample provided in their code here: https://github.com/dlitz/pycrypto/blob/master/lib/Crypto/Cipher/CAST.py So I'm using mode.openPGP, but I…
1
vote
3 answers

input too large for RSA cipher with BouncyCastle

I'm trying to write a service to SFTP to a server on a given interval, download all files in a directory, and then decrypt them for processing. The decrypt method was working at one point, and I have no modified it since. I am still using the same…
Corwin01
  • 479
  • 3
  • 7
  • 24
1
vote
1 answer

decrypt file with PHP gnupg after encrypting using gpg4win

i am completely stuck with a pgp problem, but I guess it's more a logical than a technical problem - anyway, i don't get it. The goal is to encrypt a file with gpg4win (www.gpg4win.de/index.html) and decrypt it with PHP (gnupg). First thing I did,…
lufi
  • 610
  • 7
  • 29
1
vote
1 answer

Does an OpenPGP signature contain the signer's user ID?

I have a signed public key. I wanted to view all the signatures in this OpenPGP public key. I've got the signature list, and when I tried to get the user IDs of the signers, nothing is returned. So my doubt is whether an OpenPGP signature contains…
Sohan Badaya
  • 365
  • 4
  • 15
1
vote
1 answer

Analysis of pgpdump output

I have used pgpdump on an encrypted file (via BouncyCastle) to get more information about it and found several lines about partial start, partial continue and partial end. So I was wondering what exactly this was describing. Is it some sort of…
Ignas Vaitekunas
  • 188
  • 1
  • 10
1
vote
2 answers

Revoke pgp key using Bouncy Castle API

I want to revoke my PGP public key using Bouncy Castle API. I have generated a revocation certificate. But I wasn't able to find a way to revoke a public key using a revocation certificate. How would I achieve it? I found the method addCertification…
Sohan Badaya
  • 365
  • 4
  • 15
1
vote
1 answer

OpenPGP Public Key Authentication in Go

I'm working on a Go peer-to-peer chat service to be used in Hyperboria, which operates as a meshnet. That is relatively unimportant compared to my problem: I need to use OpenPGP keys existent in user's GPG keyrings in order to encrypt and decrypt…
Alexander Bauer
  • 10,663
  • 8
  • 29
  • 40
1
vote
1 answer

Bouncy Castle OpenPGP with VB.Net

I'm mainly posting this for anyone else that needs it since there seems to be a great lack of resources on the internet for this. The samples I did find seemed hobbled together at best and never worked for me. If you see or find anything wrong…
pholt
  • 11
  • 1
  • 4
0
votes
0 answers

PGP Encryption on csv file data generated using pyspark and write to Azure container

From the existing delta lake tables, few information is gathered and those are written as csv file in Azure container. The contents of the csv file need to be encrypted using PGP. Please help on how to do this.
Amrutha K
  • 15
  • 3
0
votes
0 answers

Create PGPKeyRing using BouncyCastle C# API to be used with OpenKeyChain/Smart-PGP/GnuPG

I need help on how to correctly generate PGPKeyring that contains 3 keys each for signing, encryption, and authentication. These keys to be uploaded to a smartcard with SmartPGP applet. I have successfully put the keys into the card, and tested it…
of32 inc
  • 105
  • 1
  • 7