pgp

What do returned values of PHP gnupg signature verification mean?

我与影子孤独终老i 提交于 2019-12-23 20:59:01
问题 I want to verify pgp signed text in PHP. Following PHP documentation and answer to this question i made simple script to test gnupg library. I sent signed email between two email accounts using Thunderbird with Enigmail - receiving Thunderbird shows that signature is correct. In PHP, when i use plain email text and senders public key, verify() function returns array like this: array(1) { [0]=> array(5) { ["fingerprint"]=> string(40) "468F82339FC55DE5CAFD71BB63DD32AE1308A57F" ["validity"]=>

Sign a multipart mail using PGP/MIME

混江龙づ霸主 提交于 2019-12-23 13:16:12
问题 I'm trying to sign a mail using PGP in php. I could bring the boundaries and headers to work correctly but the mail signature isn't valid (as Thunderbirds Enigmail states). My question here is what part is to sign and what is to take attention to while doing it. At the moment the source of the generated mail looks like this (Text and signature replaced by placeholders to keep it easy to read): Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=

Sign a multipart mail using PGP/MIME

我们两清 提交于 2019-12-23 13:15:13
问题 I'm trying to sign a mail using PGP in php. I could bring the boundaries and headers to work correctly but the mail signature isn't valid (as Thunderbirds Enigmail states). My question here is what part is to sign and what is to take attention to while doing it. At the moment the source of the generated mail looks like this (Text and signature replaced by placeholders to keep it easy to read): Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=

We encrypt a file for a client using BouncyCastle API. He gets a “For your eyes only” message from PGP when trying to decrypt it. Why?

若如初见. 提交于 2019-12-22 06:39:04
问题 We use the Bouncy.Castle C# API to do PGP encryption. I am by no means an expert on PGP encryption and the various options available. The encryption seems to run fine, however, when the client tries to decrypt it, he says that PGP won't output to file but only output to screen because it is marked "For your eyes only." This is the --verbose message: pgp --decrypt Client_FileExport_20110510_020011.zip.pgp Client_FileExport_20110511_132203.zip.pgp --info verbose McAfee E-Business Server v8.5 -

JavaScript: Decrypt content of GnuPG encrypted files using openpgp.js

允我心安 提交于 2019-12-21 17:23:09
问题 I'm trying to write a sample decryptor for GnuPG encrypted files in JavaScript using openpgp.js. So I tried it naively without even asking if it is even possible. I made the following page. popup.html <!doctype html> <!-- --> <html> <head> <title>Popup</title> <script src="openpgp.js"></script> <script src="popup.js"></script> </head> <body> <p>Upload message: </p><input id="message" type="file"/><br> <p>Upload secret key: </p><input id="secret" type="file"/><br> <p>Secret key password: </p>

How can I decrypt a PGP Self Decrypting Archive programatically? [closed]

╄→гoц情女王★ 提交于 2019-12-19 18:24:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Everyday I receive SDA files for whom I have the passphrase. The decryption is done by running the file and manually entering a passphrase in the program window that pops up. I'd like to avoid this manual step, and turn it into a step of an automated process. The way this would work is the following: As soon as

Need example for BouncyCastle PGP File encryption in C#

久未见 提交于 2019-12-18 12:01:34
问题 I'm trying to encrypt files using my private key (in ascii format) and any other public key (also in ascii format). The BouncyCastle library looks like the correct thing to use, but I cannot find documentation for C#. Could anyone please assist me with an example. Thank you. 回答1: Here's some code from the BouncyCastle example. You should grab the source code and look in the unit tests, they contain examples. I've found that Java resources are also useful. The example can be found in the

Need example for BouncyCastle PGP File encryption in C#

元气小坏坏 提交于 2019-12-18 12:01:08
问题 I'm trying to encrypt files using my private key (in ascii format) and any other public key (also in ascii format). The BouncyCastle library looks like the correct thing to use, but I cannot find documentation for C#. Could anyone please assist me with an example. Thank you. 回答1: Here's some code from the BouncyCastle example. You should grab the source code and look in the unit tests, they contain examples. I've found that Java resources are also useful. The example can be found in the

C# How to simply encrypt a text file with a PGP Public Key?

自作多情 提交于 2019-12-17 17:56:26
问题 I've researched a bit about how to achieve what I said in the question and found several APIs but most of them look very complicated and since I'm just a noobie in this area I just want a simple method like: public String Encrypt(String message, PublicKey publicKey) Don't know if this can be done? If not then please someone enlighten me another way to achieve this :) Thank you. UPDATE: So far I have only seen that all of the library for OpenPGP encryption require both the public key and

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