openpgp

Recommendations for Java + OpenPGP?

ⅰ亾dé卋堺 提交于 2019-12-05 07:55:41
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... guerda 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 the JCE 1.2.1. A library for reading and writing encoded ASN.1 objects. A light weight client-side

Using BouncyCastle with GnuPG 2.1's `pubring.kbx` file

拈花ヽ惹草 提交于 2019-12-05 03:11:10
问题 I'm trying to use BouncyCastle with PGP2 to read public keys ring. The problem is that since GnuPG 2.1 it's stored in pubring.kbx instead of pubring.gpg . That leads to IOException public key ring doesn't start with public key tag: tag 0x0 Any idea if and how I can use BC with GnuPG 2.1? 回答1: GnuPG 2.1 by default uses the new keybox file format -- if no pubring.gpg is found. If there is a "legacy" keyring file, it will be used instead. I'm not aware Bouncy Castle supports the .kbx file format

PGP TarBall File Signature Keys Verification fails with no valid OpenPGP data found

扶醉桌前 提交于 2019-12-05 00:31:08
This is the first time I figured I had better check the keys of the bind software I want to install. So I downloaded what I think is a OpenPGP key ... $ wget ftp://ftp.isc.org/isc/bind9/9.9.4/bind-9.9.4.tar.gz.sha1.asc ... then I tried to "import" this key like this ... $ gpg --import bind-9.9.4.tar.gz.sha1.asc ... but I get this error message: gpg: no valid OpenPGP data found. gpg: Total number processed: 0 What am I doing wrong? Thanks! Andrew Prentice The command syntax is gpg bind-9.9.4.tar.gz.sha1.asc . Of course, this gives an error that no public key is found. You can download public

thunderbird 使用OpenPGP加解密邮件

血红的双手。 提交于 2019-12-04 14:54:51
一、添加插件Enigmail 二、进行密钥管理,并创建->新密钥对 http://www.openpgp.org/ 三、选择账户,选择有无密码,创建密钥。根据提示选择是否要撤销文件。 选择无密码创建密钥对速度快。最好选择生成撤销证书,在以后密钥对无用时告诉密钥服务器撤销无效公钥。 四、上传公钥,更新公钥,并为邮箱指定密钥 如果出现错误:Please ensure that you have a valid OpenPGP key, and that your account settings point to that key. 到账户设置指定邮箱的密钥: 五、编写邮件,并选择安全选项 六、发送 如果没有收件人的公钥,则提示: 如果已经有了收件人的公钥,提示: 安全选项中选择了附送我的公钥,如果这时选择对附件加密,则公钥附件文件名为0x1234ABCD.asc.pgp。 如果不加密公钥附件,则无.pgp后缀,0x1234ABCD.asc即为公钥附件。 提示信息提到了: Sylpheed 、 Pegasus 。 七、查看加密的邮件 查看加密的邮件首先要安装GnuPG,Windows系统需要下载 Gpg4win 。安装后,CMD下:gpg --help。(貌似应该用gpg2) 当然如果你使用安装了Enigmail的Thunderbird,可以直接查看用你的公钥加密的邮件了。 八

Using BouncyCastle with GnuPG 2.1's `pubring.kbx` file

假如想象 提交于 2019-12-03 16:47:33
I'm trying to use BouncyCastle with PGP2 to read public keys ring. The problem is that since GnuPG 2.1 it's stored in pubring.kbx instead of pubring.gpg . That leads to IOException public key ring doesn't start with public key tag: tag 0x0 Any idea if and how I can use BC with GnuPG 2.1? Jens Erat GnuPG 2.1 by default uses the new keybox file format -- if no pubring.gpg is found. If there is a "legacy" keyring file, it will be used instead. I'm not aware Bouncy Castle supports the .kbx file format. So if you want to use Bouncy Castle together on the same key files GnuPG is using, you've got

How to display gpg key details without importing it?

丶灬走出姿态 提交于 2019-12-03 00:34:06
问题 I have a copy of the postgresql apt repository gpg key and would like to view the details of the gpg key as it comes in the file. Is this possible without importing it into a key ring? 回答1: There are several detail levels you can get when looking at OpenPGP key data: a basic summary, a machine-readable output of this summary or a detailed (and very technical) list of the individual OpenPGP packets. Basic Key Information For a brief peak at an OpenPGP key file, you can simply pass the filename

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

流过昼夜 提交于 2019-12-01 04:47:26
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.d/newrelic-sysmond start The solution provided by @xdays works around the problem, but also works

How do you use the PHP OpenPGP library?

爱⌒轻易说出口 提交于 2019-11-28 17:37:19
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? 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.php <?php require dirname(__FILE__).'/../lib/openpgp.php'; require dirname(__FILE__).'/../lib/openpgp_crypt

Getting GPG Decryption To Work In Java (Bouncy Castle)

泄露秘密 提交于 2019-11-27 21:26:30
let me start by saying I'm extremely new to all of this. What I am trying to do is to use gpg from within Java in order to decrypt an encrypted file. What I've done successfully: Had a colleague encrypt a file using my public key and his private key and successfully decrypted it. Went the other way Had another colleague try to decrypt a file that wasn't for him: fail (as expected) My key was generated like this... (gpg --version tells me I'm using 1.4.5 and I'm using Bouncy Castle 1.47) gpg --gen-ley Select option "DSA and Elgamal (default)" Fill in the other fields and generate a key. The

Getting GPG Decryption To Work In Java (Bouncy Castle)

戏子无情 提交于 2019-11-26 20:43:18
问题 let me start by saying I'm extremely new to all of this. What I am trying to do is to use gpg from within Java in order to decrypt an encrypted file. What I've done successfully: Had a colleague encrypt a file using my public key and his private key and successfully decrypted it. Went the other way Had another colleague try to decrypt a file that wasn't for him: fail (as expected) My key was generated like this... (gpg --version tells me I'm using 1.4.5 and I'm using Bouncy Castle 1.47) gpg -