openpgp

Warning: gnupg::adddecryptkey(): get_key failed

怎甘沉沦 提交于 2020-06-16 04:13:25
问题 I am using gnupg php functions to decrypt a file. With the help of another post on here I managed to get it to list the keys ( gnupg_keyinfo ) by using gnupg_import and changing the owner of the gnupg directory and chmod permissions. I can also successfully encrypt a file using gnupg_encrypt . But when it comes to decrypting a file using gnupg_decrypt it doesn't work with an error message that reads: Warning: gnupg::adddecryptkey(): get_key failed This is the code I am using to encrypt and

input too large for RSA cipher with BouncyCastle

懵懂的女人 提交于 2020-02-27 12:33:30
问题 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 keys as when it did successfully work. I am using the PGPEncrypt, PGPDecrypt, and PGPEncryptionKeys classes for BouncyCastle found here: https://github.com/sledwith/PGP-Decryption-With-C-Sharp Additionally, I have modified the code as shown here:

BouncyCastle updated pgp key now getting checksum mismatch error

喜欢而已 提交于 2020-02-03 04:15:45
问题 I have a utility that is using the BouncyCastle.Crypto dll (version 1.7.4, runtime version 1.1.4), in order to decrypt a file that is given to it by another system. I just updated the pgp key (and provided the encryptor with the new public key). The new key uses 4096 bit RSA encryption and has a 24 character password, which are the only differences I can think of between the new key and the old key. The old key used I believe 2048 bit encryption with a 7 character password. When I attempt to

Adding GPG key inside docker container causes “no valid OpenPGP data found”

自作多情 提交于 2020-01-21 06:54:03
问题 I'm trying to install New Relic's system monitoring inside a docker container, but the apt-key add - fails with no valid OpenPGP data found . There is the full Dockerfile : FROM ubuntu MAINTAINER Matej Koubik RUN echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list RUN wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add - RUN apt-get update RUN apt-get install newrelic-sysmond RUN nrsysmond-config --set license_key=... RUN /etc/init

Adding GPG key inside docker container causes “no valid OpenPGP data found”

拜拜、爱过 提交于 2020-01-21 06:52:09
问题 I'm trying to install New Relic's system monitoring inside a docker container, but the apt-key add - fails with no valid OpenPGP data found . There is the full Dockerfile : FROM ubuntu MAINTAINER Matej Koubik RUN echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list RUN wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add - RUN apt-get update RUN apt-get install newrelic-sysmond RUN nrsysmond-config --set license_key=... RUN /etc/init

Batch encrypt with public key using Gpg4win command line

烈酒焚心 提交于 2019-12-22 09:39:52
问题 We are setting up our first EDI system that relies on incoming and outgoing file encryption using OpenPGP. The incoming files that are encrypted with our public key, we can successfully decrypt using our private key using Gpg4win's command line option: gpg --batch --passphrase "SOME_KEY" --decrypt-files "%decryptingdir%\*.pgp" What I now need to do, is the reverse, and encrypt the outgoing files using our partners public key. I have been unable to find any command line documentation around

How do you use the PHP OpenPGP library?

被刻印的时光 ゝ 提交于 2019-12-17 22:33:59
问题 There is a PHP extension port of the gnupg PGP library. However, I'm having a hard time finding examples that explain how to use the library. How do you properly create keys for application users, and then use them to encrypt/decrypt text using the GnuPG library? 回答1: See this URL it is very help full to you. Download example and try it. https://github.com/singpolyma/openpgp-php Or Try it:- You can download lib/openpgp.php and lib/openpgp_crypt_rsa.php files in above the URL. examples/keygen

What does this ambiguous pronoun represent in the text of RFC 4880?

爷,独闯天下 提交于 2019-12-12 11:42:29
问题 What does RFC 4880 sec 5.1 mean by " this "? The value "m" in the above formulas is derived from the session key as follows. First, the session key is prefixed with a one-octet algorithm identifier that specifies the symmetric encryption algorithm used to encrypt the following Symmetrically Encrypted Data Packet. Then a two-octet checksum is appended, which is equal to the sum of the preceding session key octets, not including the algorithm identifier, modulo 65536. This value is then encoded

How do I use Go's openpgp package?

独自空忆成欢 提交于 2019-12-12 10:45:09
问题 I've been looking through the documentation for Go's openpgp package, and I think I must be missing some obvious points. For example, there's a ReadKeyRing function, but no WriteKeyRing . I can, on the other hand, Serialize an Entity , but I have no way to read it back. What's going on here? Does anyone actually use this package? 回答1: An entity represents public+private GPG key information. The ReadKeyRing function allows you to read a list of GPG keys. The Entity.Serialize function

Is Maven artifact signing a legitimate use of GnuPG comment in user ID?

末鹿安然 提交于 2019-12-12 05:03:04
问题 I'm new to GPG signing and the intricacies are dizzying, as my other, overly-broad question indicates. So let me try to distill my current doubts into a simple question. Let's say that a company Acme wants to sign some artifacts for publishing on Maven Central. From much research from various sources I glean the following best practices: Acme should have one single primary key, e.g. for id@acme.example.com . Acme should generate subkeys for general day-to-day use, such as signing Maven