Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If I have files that I would like share with another person however if this person does not have a public key e.g. they have not yet installed PGP, etc how can I encrypt the data so that only that individual can decipher it with their private key?

share|improve this question
add comment

2 Answers 2

up vote 7 down vote accepted

With PGP, or other public-key encryption methods, no, this is not possible. You must have their public key to encrypt the file to them.

There are other methods of encryption, however. The most common would be called "shared-secret", and this includes things like ZIP file encryption or RAR file encryption. You essentially encrypt the file using a "password." To decrypt, you must also know the same password. So this does not require knowing the recipient's public key, but it does require telling the recipient the password some how--hopefully over a secure channel.

share|improve this answer
1  
Argh, five seconds! :-D –  Synetech Oct 31 '11 at 22:25
add comment

You can’t. If you want to use PGP, then you need their key to encrypt it with. An alternate solution is to zip/rar/7z/etc. the files, specifying a password. Obviously it requires giving them the password, but then you could encrypt a text file with the password with their public key when they get one; that would be out-of-band in a way.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.