Questions tagged [pgp]

Pretty Good Privacy (PGP) is a data encryption and decryption computer program that provides cryptographic privacy and authentication for data communication.

Pretty Good Privacy (PGP) is a data encryption and decryption computer program that provides cryptographic privacy and authentication for data communication. PGP is often used for signing, encrypting and decrypting texts, E-mails, files, directories and whole disk partitions to increase the security of e-mail communications. It was created by Phil Zimmermann in 1991.

PGP and similar products follow the OpenPGP standard (RFC 4880) for encrypting and decrypting data.

Resources

817 questions
3
votes
1 answer

How to encrypt a string with GnuPG?

How can I encrypt a given string using gpg from command line? I have the public key stored in a file called pubkey.pub I thought I could simply do it with something like that. gpg --import "path/to/pubkey.pub" --encrypt "my string to encrypt" But…
YeppThat'sMe
  • 1,812
  • 6
  • 29
  • 45
3
votes
1 answer

BouncyCastle C# PublicKey different than GnuPG

I am trying to get a public PGP key from a keyring created by GnuPG using the BouncyCastle C# library. I've gotten it to semi-work by using the following code. The problem is that the public key it outputs is about half the length of the real one…
Synaps3
  • 1,597
  • 2
  • 15
  • 23
3
votes
1 answer

PGP passphrases in company

Friend of mine wanted introduce in his company emails PGP encryption for exchange mails with clients. He asked me to write easy app supporting that. I found useful dll wrapper - so it seems to be not very big deal to write app. What puzzles me is…
Maciej
  • 10,423
  • 17
  • 64
  • 97
3
votes
1 answer

Where to store public and private gpg keys?

I have a WebApplication, using GWT + Tomcat + Jersey + Postgres. All the important data is encrypted on Postgres with a gpg public key and decrypted with a gpg private key. My question is: where to store those keys? It sounds very insecure to me…
Robson Braga
  • 323
  • 4
  • 16
3
votes
0 answers

How to sign commits in SVN?

In GIT we can sign commits using the -S flag. (Here's some reading on why on earth you would want to do that.) Is it possible to sign commits in SVN as well?
user3371321
  • 253
  • 2
  • 6
3
votes
4 answers

Creating PGP keys in iOS app

I need to build an iOS application in which PGP keys will be created in order to encrypt and decrypt certain messages. Since I'm new to PGP encryption in iOS is there some library that will allow me to create, keep and access the PGP keys as well as…
R3dH4nd5
  • 35
  • 1
  • 4
3
votes
0 answers

How to export PGP key (in clear text?)?

I created a set of PGP keys in Kleopatra using GPG4Win. I want to use my private and public keys to encrypt and decrypt emails with this Chrome extension: https://chrome.google.com/webstore/detail/mailvelope/kajibbejlbohfaggdiogboambcijhkke I…
3
votes
1 answer

Sending an encrypted mail with javamail using PGP

I've an error when i try to encrypt a mail using PGP The error: **java.security.NoSuchProviderException: No provider configured for PGP** at net.suberic.crypto.EncryptionManager.getEncryptionUtils(EncryptionManager.java:106) at …
3
votes
1 answer

Can't decrypt OpenPGP data I encrypt with BouncyCastle C#

I'm trying to encrypt strings (not files) with OpenPGP using BouncyCastle. I generated a public/private key pair using GPG4win (Kleopatra) for testing. My code works, and outputs the encrypted file, however I cannot decrypt that file again with…
Matt Jadczak
  • 115
  • 1
  • 8
3
votes
1 answer

How does Nexus Pro auto-verify the authenticy of the downloaded artifacts?

I have done some research on the Maven Central Repository security, especially the Cross Build Injection attack (XBI). I read a few links, which I listed below:…
Lan
  • 6,470
  • 3
  • 26
  • 37
3
votes
3 answers

Is there a standard implementation for Electronic Signatures on fill-in-form web applications?

I have a client who is interested in adding in electronic signature support to a long (40 question) seller application form. I'm a little stumped on whether there is an existing standard or process that's out there that folks in the financial world…
Tim Howland
  • 7,919
  • 4
  • 28
  • 46
3
votes
7 answers

Easiest way to decrypt PGP-encrypted files from VBA (MS Access)

I need to write code that picks up PGP-encrypted files from an FTP location and processes them. The files will be encrypted with my public key (not that I have one yet). Obviously, I need a PGP library that I can use from within Microsoft Access.…
stucampbell
  • 6,383
  • 5
  • 26
  • 25
3
votes
1 answer

Exception on decrypting file using BouncyCastle PGP

I was trying to decrypt this sample file given by the client, using a class called PgpDecrypt. But when the code comes to this line: Stream clear = pbe.GetDataStream(privKey); it returns an error: exception decrypting secret key Here's my…
iceheaven31
  • 877
  • 1
  • 13
  • 23
3
votes
1 answer

Perl PGP in memory encryption that uses GPG

I tried using Crypt::OpenPGP but encountered some issues decrypting GPG encrypted messages. So now I'm looking for alternatives. I would like the module to be able to do its encryption/decryption entirely in memory, because we'd like to ensure that…
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
2
votes
3 answers

public and private key files (.pkr,.skr)

i am new to PGP and want to implement encryption/decryption in one requirement. i googled it and decided to use Boynce Castle algo. But when i am trying to understand it, i confused at how i will get the .pkr and .skr files. i just downloaded…
Amit T
  • 93
  • 1
  • 2
  • 12