pgp

PgP Encryption and Decryption using BouncyCastle c#

核能气质少年 提交于 2019-11-27 13:12:35
问题 I've seen a number of posts, followed a number of tutorials but none seems to work. Sometimes, they make reference to some classes which are not found. Can I be pointed to a place where I can get a simple tutorial showing how to encrypt and decrypt a file. I'm very new to Pgp and any assistance is welcomed. 回答1: How's this: PartialInputStream during Bouncycastle PGP decryption Also, the zip contains examples here: http://www.bouncycastle.org/csharp/ Hope this helps. If you're still stuck,

PGP Encryption and Decryption with Java [closed]

前提是你 提交于 2019-11-27 12:04:06
I want to decrypt a file using PGP keys. I have downloaded PGP keys installer and installed. Using that I created a text file and encrypted the text file using PGP keys. Then I got a .pgp extension file which is encrypted. Now I want to decrypt the same file using Java code using PGP. In Java, How do I decrypt a text file which is already encrypted using PGP keys? I've written a complete code in Java with BounceCastle API and OpenPGP. In this source code you will find how to generate the key pair, encrypt and decrypt files. Take a look at: https://github.com/damico/OpenPgp-BounceCastle-Example

Sign git commits with GPG

霸气de小男生 提交于 2019-11-27 11:31:25
问题 Is there a way to sign git commits with gpg? It's so easy with tags (using -s instead of -a ), it seems there would be a similar function for commits. 回答1: git commit -S (requires git >= 1.7.9). 回答2: Note: Adding the -S option all the time can be cumbersome. In git 2.0 and later, you can add a config which will take care of that option for you. See commit 2af2ef3 by Nicolas Vigier (boklm): Add the commit.gpgsign option to sign all commits If you want to GPG sign all your commits, you have to

How to do PGP in Python (generate keys, encrypt/decrypt)

柔情痞子 提交于 2019-11-27 11:21:45
I'm making a program in Python to be distributed to windows users via an installer. The program needs to be able to download a file every day encrypted with the user's public key and then decrypt it. So I need to find a Python library that will let me generate public and private PGP keys, and also decrypt files encrypted with the public key. Is this something pyCrypto will do (documentation is nebulous)? Are there other pure Python libraries? How about a standalone command line tool in any language? All I saw so far was GNUPG but installing that on Windows does stuff to the registry and throws

Encrypt in Javascript, decrypt in PHP, using public-key cryptography

一个人想着一个人 提交于 2019-11-27 10:37:11
I'd like to encrypt in JavaScript, decrypt in PHP, using public-key cryptography. I've been trying to find libraries that can accomplish this, but am having issues. I am currently looking at openpgpjs , but I need support in all browsers, and even the test page has errrors on the only listed as supported browser (Google Chrome). Notes about the final goal: The TCP connection is already protected by SSL. The main purpose of this layer of protection is defending against intentional or unintentional webserver logging, crash dumps, etc. On the PHP side, a temporary private key will be generated

How to encrypt a string/stream with bouncycastle pgp without starting with a file

℡╲_俬逩灬. 提交于 2019-11-27 05:11:42
问题 I need to encrypt a stream with pgp using the bouncycastle provider. All of the examples I can find are about taking a plain text file and encrypting that however I won't have a file and it's important that the plain text never be written to disk. Most of the methods I've seen are using PGPUtil.writeFileToLiteralData which wants the plaintext passed in. I'd rather passin a byte[] or an inputStream. Can someone point me to an example that starts from string/byte[]/inputstream encrypts said

PGP Encryption and Decryption with Java [closed]

蓝咒 提交于 2019-11-26 22:22:26
问题 I want to decrypt a file using PGP keys. I have downloaded PGP keys installer and installed. Using that I created a text file and encrypted the text file using PGP keys. Then I got a .pgp extension file which is encrypted. Now I want to decrypt the same file using Java code using PGP. In Java, How do I decrypt a text file which is already encrypted using PGP keys? 回答1: I've written a complete code in Java with BounceCastle API and OpenPGP. In this source code you will find how to generate the

Encrypt files using PGP in PHP?

蓝咒 提交于 2019-11-26 18:46:22
I want to use PGP encryption to encrypt a CSV files, I am generating through a PHP script and then send that file to client via email. Client will give me the encryption key, which I need to use for encryption files. I Googled about PGP and found it is Pretty Good Privacy, also I found OpenPGP http://www.openpgp.org/ and GnuPG http://www.gnupg.org/ What are these two types of PGP? and which one should I use? Also how to encrypt a files using PGP in PHP with the key that my client will provide? I have heard this term first time, can anyone please help in understanding this and implementing this

How to do PGP in Python (generate keys, encrypt/decrypt)

拥有回忆 提交于 2019-11-26 15:27:55
问题 I'm making a program in Python to be distributed to windows users via an installer. The program needs to be able to download a file every day encrypted with the user's public key and then decrypt it. So I need to find a Python library that will let me generate public and private PGP keys, and also decrypt files encrypted with the public key. Is this something pyCrypto will do (documentation is nebulous)? Are there other pure Python libraries? How about a standalone command line tool in any

Encrypt in Javascript, decrypt in PHP, using public-key cryptography

无人久伴 提交于 2019-11-26 15:14:35
问题 I'd like to encrypt in JavaScript, decrypt in PHP, using public-key cryptography. I've been trying to find libraries that can accomplish this, but am having issues. I am currently looking at openpgpjs, but I need support in all browsers, and even the test page has errrors on the only listed as supported browser (Google Chrome). Notes about the final goal: The TCP connection is already protected by SSL. The main purpose of this layer of protection is defending against intentional or