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

OpenPGP (Bouncy Castle) with MSCAPI Keystore

I am trying to do an encryption/decryption in java with bouncy castle (v1.65). So I need to convert my MSCAPI(Windows-MY) Key to a PGP Key. When I try with a PSCK12 or PSCK8, it worwed like a charm. But with MSCAPI(Windows-MY) Store, it didn't…
0
votes
0 answers

Openpgp to encrypt using a DSA public key

I wrote a Go function to encrypt a string using a public DSA key. I understand DSA keys are meant for signing but command line encryption seems to be working fine with the DSA key. I wanted to check if openpgp or any other crypto package in Go can…
0
votes
1 answer

OpenPGP public key import in Java

I trying to import a existint pgp public key : -----BEGIN PGP PUBLIC KEY BLOCK----- Version: Keybase OpenPGP v1.0.0 Comment:…
Ivan Fontalvo
  • 433
  • 4
  • 21
0
votes
0 answers

PGP encryption and decryption with BouncyCastle v1.8.6

Hello PGP and encryption gurus, I'm trying to implement my own PGP component in one of my project using BouncyCastle framework v1.8.6. I'm getting this output: -----BEGIN PGP MESSAGE----- Version: BCPG C#…
0
votes
1 answer

PGP Encryption with Apache Camel

I am trying to encrypt and decrypt a file using PGP Encryption/Decryption methodology with Apache Camel. Further I have installed Kleopatra to generate the private and public keys. Using Kleopatra i have generated my keys successfully. The secret…
Karthick88it
  • 601
  • 2
  • 12
  • 28
0
votes
0 answers

How to encrypt a file using gpg key from files in Go?

I'm doing some works about secure communication. I generated a gpg key in the bash. It is easy to encrypt a file in the bash, however, I want to do that in Go. The go package openpgp seems not having relative functions, so how can I do…
jsdtLin
  • 69
  • 1
  • 3
0
votes
0 answers

PHP run shell script can't write new files

I know there exists some libraries, openPgp or gnupg, to encrypt and decrypt files in PHP, but it is a requirement of the company that the script works with bash script and runs from PHP like shell_exec("./myscriptencrypt") #The example…
pedroooo
  • 563
  • 1
  • 4
  • 17
0
votes
1 answer

How to create PGP Public and Private keys from AsymmetricCipherKeyPair?

My goal is to genrate armoer eliptical curve (ECC) public and private key. So I have implemented the AsymmetricCipherKeyPair, now I have to convert it to OpenPGP Key so pass it for the KeyRingGenrator. X9ECParameters parms =…
0
votes
1 answer

Using Openpgp lib, I get: Failed to find module "stream"

I installed the openpgp lib in my project and run a service that uses the Android emulator. It then throws the following error: An uncaught Exception occurred on "main" thread. java.lang.RuntimeException: Unable to create application…
0
votes
1 answer

Get string output for PGP Encrypt and Sign in one pass using Bouncy Castle

I have the code which can PGP encrypt and sign a file in one pass and save the encrypted data in another file. The problem is that I have to pass this encrypted data to another API in JSON format. For that I need to convert the encrypted data to a…
0
votes
0 answers

no valid OpenPGP data found when building docker image

When building a docker image the following step, which happens after downloading nodejs to verify nodejs authenticy gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 9554F04D7259F04124DE6B476D5A82AC7E37093B reults sometimes in: [0m[91mgpg:…
Gobliins
  • 3,848
  • 16
  • 67
  • 122
0
votes
0 answers

PGP encrypt an input file in Python given a public key

Thanks in advance! I am new to Python. I want to PGP encrypt a file named "input.csv" using a downloaded "pgp_keys.asc" file. Here is my attempt: def encrypt(key, src): import requests r = requests.get(key) with…
user1393608
  • 1,299
  • 3
  • 16
  • 29
0
votes
1 answer

Openpgp.js can't decrypt pgp message

I'm using openpgp.js version 2.2.1. So I've managed to encrypt a message just fine const options = { data: voteObject.option, // input as Message object publicKeys: (pgp.key.readArmored(pubkey)).keys, // for…
chef
  • 11
  • 1
  • 2
0
votes
2 answers

node js async function return Promise { }

i had try to test out an encryption stuff and im new to nodejs. after several try and search over google, i unable to solve my problem. please help. case: calling async method to encrypt data, however it return me with a Promise { } im…
zhang yu
  • 45
  • 1
  • 4
0
votes
0 answers

How to decrypt a Pgp-encrypted file using dotnet core

I have found an BouncyCastle OpenPgp package for encrypting/decrypting Pgp piles using dotnet Core. The repo is here, but there is no documentation. Does anyone know how to decrypt a file encrypted using Pgp?
Aidan
  • 4,783
  • 5
  • 34
  • 58