pgp

Create pgp file with gpg from command line

非 Y 不嫁゛ 提交于 2021-02-08 15:14:47
问题 I want to encrypt an xml file and I am using gpg4win (kleopatra). Using the kleopatra interface I set an option to produce files with extension pgp instead of gpg which is the default extension. I am trying to create a pgp file from command line using the command gpg -r test@test.gr -se C:\temp\myfile.xml because I need to submit it in a web app that accepts pgp only. I have tried to put some other options in the command but I always get a gpg file. How can I produce a pgp file from command

Create pgp file with gpg from command line

六月ゝ 毕业季﹏ 提交于 2021-02-08 15:10:36
问题 I want to encrypt an xml file and I am using gpg4win (kleopatra). Using the kleopatra interface I set an option to produce files with extension pgp instead of gpg which is the default extension. I am trying to create a pgp file from command line using the command gpg -r test@test.gr -se C:\temp\myfile.xml because I need to submit it in a web app that accepts pgp only. I have tried to put some other options in the command but I always get a gpg file. How can I produce a pgp file from command

Decrypting in pgpy fails with “ValueError: Expected: ASCII-armored PGP data”

谁都会走 提交于 2021-01-28 09:57:48
问题 I have an OpenPGP encrypted file and its private key in a text file and know its passphrase. I tried this below code: import pgpy emsg = pgpy.PGPMessage.from_file('PGPEcrypted.txt') key,_ = pgpy.PGPKey.from_file('PrivateKey.txt') with key.unlock('passcode!'): print (key.decrypt(emsg).message) But while trying to execute I am getting following error: Traceback (most recent call last): File "D:\Project\PGP\pgp_test.py", line 4, in <module> key,_ = pgpy.PGPKey.from_file('SyngentaPrivateKey.txt')

Decrypting in pgpy fails with “ValueError: Expected: ASCII-armored PGP data”

南笙酒味 提交于 2021-01-28 09:56:11
问题 I have an OpenPGP encrypted file and its private key in a text file and know its passphrase. I tried this below code: import pgpy emsg = pgpy.PGPMessage.from_file('PGPEcrypted.txt') key,_ = pgpy.PGPKey.from_file('PrivateKey.txt') with key.unlock('passcode!'): print (key.decrypt(emsg).message) But while trying to execute I am getting following error: Traceback (most recent call last): File "D:\Project\PGP\pgp_test.py", line 4, in <module> key,_ = pgpy.PGPKey.from_file('SyngentaPrivateKey.txt')

How to sign and verify the file in JAVA

不问归期 提交于 2021-01-28 07:08:26
问题 I have to place a file in remote SFTP server before that I have to sign the file with the private key and they will verify it with the public key. I am getting "PGP Signature verification failed" error from the response file. So I tried to verify the sign from JAVA. Still, I am getting false value from the signature verify method. Any help would be appreciated. Here's a code that I've put together. public class SignAndVerify { static final KeyFingerPrintCalculator FP_CALC = new

GnuPG is installed but python is not finding it in runtime

风格不统一 提交于 2021-01-28 07:02:21
问题 pip install GnuPG says that the requirement is already satisfied but when I run a python script with GnuPG it says GnuPG is not installed . 回答1: In order to fix my environment I had to uninstall pgp and python-gnupg using the pip uninstall commands and then ONLY install python-gnupg. I must have had multiple versions of pgp and python was using the wrong one. 回答2: are you sure about the python and pip version? try to see pip is referring to which python version and you are running script in