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

How to decrypt a symmetrically encrypted OpenPGP message using PHP?

I have an OpenPGP message which looks something like this given to me in a file: -----BEGIN PGP MESSAGE----- Version: GnuPG v1.4.9…
imin
  • 4,504
  • 13
  • 56
  • 103
6
votes
1 answer

How to give highest trust level to an OpenPGP certificate in Kleopatra?

I'd like to give the highest trust level to a certificate. I need to do so, as this certificate is mine but I don't have exported it before formatting my PC. I have downloaded it from a public key server and I have my private key saved in KeePass,…
fede.97
  • 73
  • 1
  • 3
6
votes
1 answer

Verifying a signature using go.crypto/openpgp

I have a binary file: foo.bin This file has been signed using a gpg key to create: foo.bin.sig I have a file containing the public key that was used to sign the binary file. What I'd like to do is to be able to verify this signature using Go. I…
thumper
  • 423
  • 1
  • 4
  • 11
5
votes
2 answers

PGP BouncyCastle + Kleopatra Decryption: Unknown Packet Type: 20

I am attempting to decrypt a file using BouncyCastle in C# that has been encrypted with RSA via Kleopatra. Unfortunately, I am receiving an error that states "Unknown packet type encountered: 20" when processing through the first few lines of…
mherr
  • 348
  • 1
  • 7
  • 25
5
votes
1 answer

Java: PGP Encryption using Bouncy Castle

I am trying to achieve encryption using PGP and my encrypt method successfully encrypts the input string but when I try to decrypt it to verify if the encryption is properly done, the string doesn't get decrypted. I tried 2 approaches: 1st approach…
Unnamed user
  • 181
  • 1
  • 2
  • 12
5
votes
1 answer

How to use and convert an image file into Uint8Array in react native?

I am working on React-Native-OpenPGP for Encryption and Decryption. I want to take an image from my folder (local image fetch)/ Image url and convert that image into Uint8Array for encryption/Decryption . I am new to react native , Not able to find…
Diksha235
  • 442
  • 7
  • 17
5
votes
1 answer

Should we share the public key for checking signing in the git repository?

In the book Pro Git, Tagging Your Releases: It shows a way to collect the public key into a blob in git,so users who sync it can add that public key and to verify the signed tag. Is this way actually safe? Someone can change the public key blob and…
TangXC
  • 67
  • 5
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

OpenPGP in Go Error: "crypto: requested hash function is unavailable"

I'm playing around with the openpgp package for Go by making a simple program that encrypts a short message and ASCII armors it. The code I currently have is: package main import ( "code.google.com/p/go.crypto/openpgp" …
xoebus
  • 812
  • 7
  • 18
5
votes
1 answer

Decoding PGP keys in Erlang

I'm unable to "pem_entry_decode" GPG public key in Erlang. Public key generated through OpenSSL works fine. I've fixed GPG key as suggested in Erlang - Importing GPG Public Key. #!/usr/local/bin/escript main(_) -> [application:start(X) || X <-…
ram
  • 559
  • 1
  • 5
  • 15
5
votes
1 answer

OpenPGP Signature Packet hashed data

RFC 4880 describes the version 4 signature packet, tag 2, as - One-octet signature type. - One-octet public-key algorithm. - One-octet hash algorithm. - Two-octet scalar octet count for following hashed subpacket data. Note that this is the length…
calccrypto
  • 8,583
  • 21
  • 68
  • 99
4
votes
1 answer

Unable to decrypt an unarmored pgp file with OpenPGP.js: Session key decryption failed

I have a CSV file that has been encrypted and is now an unarmored PGP file. I'm trying to decrypt it using OpenPGP.js 5.0.0 and Node.js 14.17.5 but keep hitting a wall. At first, I tried the following code, as per the project examples: const…
noamt
  • 7,397
  • 2
  • 37
  • 59
4
votes
1 answer

How to use key pair generated by openpgp in go

I'm trying to generate keypair with openpgp lib and when I want to test it by encrypting a test string, it returns the following error openpgp: invalid argument: cannot encrypt because no candidate hash functions are compiled in. (Wanted RIPEMD160…
Yok0
  • 121
  • 1
  • 9
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
0 answers

OpenPGP encryption not working between systems

I am relatively new to OpenPGP but I am currently trying to encrypt a message on a users device using OpenPGP.js and decrypt that message using OpenPGP PHP on my server. Both sides can encrypt and decrypt their own messages now - the problem: As…
1 2
3
24 25