808 questions
Score of 0
0 answers
53 views
PGP Public Key Exception
I have a PGP public key in my Azure Key Vault when I try to use it in my .net application am getting the below exception.
System.ArgumentException: 'passed in key not an encryption key!'
Stream ...
Score of 0
0 answers
84 views
PGP Issue : Caused by: java.lang.SecurityException: JCE cannot authenticate the provider BC
I am getting below exception when trying to decrypt pgp message in Java 11
Caused by: java.lang.SecurityException: JCE cannot authenticate the provider BC
And we are using below bouncycastle ...
Score of 0
0 answers
140 views
PGP Issue : org.bouncycastle.crypto.InvalidCipherTextException: block incorrect
Currently we did migration from java 1.8 to java 11. During migration we are facing below decrypting pgp message issue in one of the application.
Caused by: org.bouncycastle.crypto....
Score of 0
2 answers
294 views
"No key data found" when using pgpainless to import key
I'm on Mac and I've created and exported a key:
% gpg --generate-key
% gpg --export --armor --output new.pub B42B1AF5
the contents of which you can see here:
-----BEGIN PGP PUBLIC KEY BLOCK-----
...
Score of 2
0 answers
495 views
How does GPG Encryption/Decryption work on Spark?
I am doing GPG/PGP encryption/Decryption on spark. I have some large files. Sizes up to 30 GB . I am using a spark cluster with following configuration -
Worker Node - 16 GB , 4 Core . Min 2 , Max 8 ...
Score of 1
0 answers
96 views
How to convert public EC key to PGP public key
I have a public EC key which I want to convert to PGP public key using Golang. I found resources to convert RSA key to a pgp key but is it even possible to convert an EC key to PGP public key.
My use ...
Score of 0
1 answer
200 views
Should both the sender's keypair and the recipient's keypair open a sodium crypto box?
I'm trying to understand sharing encrypted messages using PHP's sodium crypto box.
Using an example that I found somewhere I've tried to simulate a conversation between two people. They each have ...
Score of 1
1 answer
282 views
Error while decrypting file using PGP decryption in Rails
I have a client file which is encrypted using PGP encryption. The encrypted file shared is in xlsx format. The PGP private key is also shared as a text file(Note that i added .pgp extension for the ...
Score of 0
1 answer
191 views
How To verify Ascii-Armored data after decryption in PGP using Bouncy Castle?
I'm relatively new to PGP and bouncy castle. After signing a message, get a ascii-armored data back. Let's assume this ascii-armored data is encrypted and decrypted and waiting for sign verification. ...
Score of 0
0 answers
59 views
Random Unicode characters being added to start of file after encryption/decryption
As per the title, not sure what I'm doing wrong. Using the pgpy Python module to encrypt/decrypt with 2048 bit RSA keypair, and consistently getting '' added to the start of the csv file.
After ...
Score of 0
0 answers
158 views
sh spawn expect - handling multiple lines in expect command
I am encrypting source files using PGP encryption. After importing the key, every time I run the script it is expecting a confirmation. But in Production I am planning to use spawn and expect commands,...
Score of 0
1 answer
217 views
PGP decryption in azure fucntion app v2-linux
I am trying to decrypt a file using python gnupg. I have an azure durable fucntion app on Linux app service.
The code runs fine on local but fails on Cloud.
decrypted_data = gpg.decrypt(encrypted_data,...
Score of -1
1 answer
485 views
How do I add a public PGP key from a internal apt mirror inside python3.10-slim image?
I need to set up apt inside of our container images to use our internal apt mirror.
This will require changing the apt sources, copying over the public key, adjusting apt to use a proxy, and then ...
Score of 0
1 answer
1096 views
Encrypt Decrypt file using GNUPG
I created PGP keys using this key generator website (Algo - RSA, Key Size - 4096 bits). I am using Databricks to write its encrypt and decrypt function and store public and private keys generated ...
Score of 0
1 answer
1869 views
Invalid header encountered while PGP verifying signature
My requirement:
Hash Algorithm during signing: SHA256
Sender signs the encrypted message using its private key
Receiver verifies the signature using Sender’s public key
I am having the below ...