Solved

How can I decrypt a file I encrypted in PGP with someone else's key?

Posted on 2011-02-16
3
598 Views
Last Modified: 2012-05-11
We encrypt a file via the command line for a 3rd party with their key.  They have been reporting that around 10% of the time they can not decrypt.  

As a result we would like to decrypt out ourselves the encrypted file before we send to them to see if the decryption process fails.  If it is good then we would send them the encrypted file.  If it fails then we would re-encrypt the file.  

On one hand it sounds logical you should be able to decrypt anything you encrypt but on the other hand it makes sense if we use someone else's key to encrypt that we can decrypt.  
0
Comment
Question by:Lotus30306
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
treetop3 earned 167 total points
ID: 34908675
Hi,

You must make sure you have both Private and Public keys to Decrypt

Regards,
TT
0
 
LVL 10

Assisted Solution

by:abbright
abbright earned 333 total points
ID: 34908696
PGP uses asymmetric key cryptography that is you encrypt using the public key and decrypt using the corresponding private key. So you can encrypt using the file using the public key of your 3rd party but you won't be able to decrypt it as you likely don't own the private key they have. Anyway you can encrypt the file using two different public keys, so in addition to the 3rd party's public key you can encrypt the file using a public key of your own as well and try to decrypt it using your private key. If that works it is likely your 3rd party can decrypt the file as well.
0
 
LVL 10

Assisted Solution

by:abbright
abbright earned 333 total points
ID: 34908794
The weay to encrypt a message for multiple recipients is to use option -r multiple times, see http://linux.die.net/man/1/gpg.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSL RA VPN 7 103
Server 2012 R2 Term Server Directory/File Permissions 5 118
Installation of Nessus Professional 5 81
Document that shows Russian Security Threats 1 35
Article by: btan
Provide an easy one stop to quickly get the relevant information on common asked question on Ransomware in Expert Exchange.
How important is it to take extra precautions to protect your online business? These are some steps you can take to make sure you're free of any cyber crime.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now