gnupg

Recommendations for Java + OpenPGP?

心已入冬 提交于 2019-12-07 02:32:28
问题 I want to develop a small OpenPGP client and I'm searching for a Java library for OpenPGP. Are there any (open source) recommendations for this approach? Cryptix.org does not seem alive anymore... 回答1: I found the BouncyCastle library, for Java and C#. I haven't any experiences with it. I will try it and report here. It provides: A lightweight cryptography API for Java and C#. A provider for the Java Cryptography Extension and the Java Cryptography Architecture. A clean room implementation of

Verify digital signature using php

我与影子孤独终老i 提交于 2019-12-06 19:52:27
I have an email which is digitally signed. email : -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The below email has been digitally signed for test purposes. We will now go on and save this signed email in our dms system. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTnwd9AAoJEEWjhuB1kNr9dQcH/2YeZlHEfK/KOPg8XhpOY+4l 3camfFVya8JIzLHsOzhhdSqIItDr7VlGDrjrMgPPiD1abyy9zhcqZ18Kh8sUuFJV /TA434rrnMJC0xmSzXl4uo+UagyNyCjzwR4TFCGP4Ob6SzPl/jxfrcfO5yXEdF1I X6wgQUmnb3ZLczdPVXsKpwpVIGqX7diwe1CAZKxCmjZo9rr

Git commit signing GPG issue

允我心安 提交于 2019-12-06 12:21:43
I am having the following issue when I am trying to create a commit using Git Extensions and SourceTree "C:\Program Files\Git\bin\git.exe" commit -F "C:\Code\XXX\.git\COMMITMESSAGE" gpg: keyblock resource 'C:/Code/XXX/%appdata%/gnupg/pubring.kbx': No such file or directory gpg: skipped "ZZZZZZZZZZ": No secret key gpg: signing failed: No secret key error: gpg failed to sign the data fatal: failed to write commit object Done My pubring.kbx exists in my %appdata% directory but why is it prefixing the repo path to it? This is on a windows machine FYI. I have this working on another windows machine

Getting BouncyCastle to decrypt a GPG-encrypted message

爱⌒轻易说出口 提交于 2019-12-06 08:27:20
问题 How can I get BouncyCastle to decrypt a GPG-encrypted message? I have created a GPG key pair at the CentOS 7 command line using gpg --gen-key . I chose RSA RSA as the encryption types, and I exported the keys using gpg --export-secret-key -a "User Name" > /home/username/username_private.key and gpg --armor --export 66677FC6 > /home/username/username_pubkey.asc I am able to import username_pubkey.asc into a remote Thunderbird client of another email account and successfully send an encrypted

Command line GPG decrypting using c# - passphrase?

ε祈祈猫儿з 提交于 2019-12-06 07:26:22
I'm using the command line to encrypt files that I am sending out but I am trying to figure out how to use the same method to decrypt them. If I run the command it get prompted for the passphrase, but I don't see a way to pass in the passphrase using the command line. Here is how I am encrypting the file: var proc = new Process(); proc.EnableRaisingEvents = false; proc.StartInfo.WorkingDirectory = "C:\\"; proc.StartInfo.FileName = @"C:\Progra~1\GNU\GnuPG\gpg.exe"; proc.StartInfo.Arguments = @"-e -u ""user1@example.com"" -r ""user2@example.com"" ""C:\file.csc"""; proc.Start(); proc.WaitForExit(

gpg with powershell - passphrase security

北慕城南 提交于 2019-12-06 06:54:53
问题 I'm using gnupg to encrypt and decrypt data via powershell script and the problem is, that I have passphrase in the code. It's propably not the best solution. Which is the best and secure way to provide passphrase to script? Thank you. C:\"Program Files"\GNU\GnuPG\gpg2.exe --passphrase mypassphrase --batch --output C:\Z\$decrypted_file.xls --decrypt C:\_Zo\$encrypted_file 回答1: You can Crypt the passphrase or the password on the disk. The following solution use computer as a user . The

Python/POpen/gpg: Supply passphrase and encryption text both through stdin or file descriptor

烈酒焚心 提交于 2019-12-06 05:20:54
问题 I'm trying to remote control gpg through a python program via POpen . I have a file that contains encrypted data which I want to decrypt, modify and write back to disk re-encrypted. Currently I am storing the decrypted information in a temporary file (which I shred when the program ends). Then I perform my modifications to that file and then re-encrypt it using a function, which pipes the passphrase through stdin . The code for this is as follows: def encrypt(source, dest, passphrase, cipher

Batch encrypt with public key using Gpg4win command line

回眸只為那壹抹淺笑 提交于 2019-12-06 01:54: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 batch encryption using a public key. I assumed it would be something in the order of: gpg --batch -

Signing commit with OpenPGP subkey fails

杀马特。学长 韩版系。学妹 提交于 2019-12-06 00:48:52
问题 I would like to use one of my GPS (2) subkeys for signing commits/tags in Git I.e., my freshly created RSA4096 signing-only key with the long ID B0##... sec# ed25519/9F############## 2016-01-07 [expires: 2023-01-05] Key fingerprint = FC08 HEX HEX HEX uid [ultimate] MY NAME <MY.NAME@foo bar> ssb rsa4096/C9############## 2016-01-07 [expires: 2022-01-05] ssb ed25519/C6############## 2016-01-07 [expires: 2022-01-05] ssb rsa4096/B0############## 2016-01-13 [expires: 2022-01-11] Where I am working

GPG signing Git commits after updating MacOSX hangs on password entry

余生长醉 提交于 2019-12-05 22:24:33
I think this started happening after I updated the lastest OSX version, which might or might not have contained a new version of Git. But now, almost every time I try to sign my commits (either through git commit -S or git rebase -S ): I get the password prompt Enter the password Press enter and nothing happens. No 'Permission Denied: Invalid Password', nothing. I have to Ctrl-C to get out of the prompt. Not sure if this is a known issue on Git or El Capitan 10.11.6, but its getting vexing since I always sign my git commits. I've also checked that no other GPG processes are running and nothing