PDA

View Full Version : Encrypted a file, cannot open it


PartisanEntity
December 13th, 2006, 12:37 PM
I have been trying to play around with en/decryption. I am somewhat familiar with the process, on my Windows machine I used to use PGP Desktop.

In Ubuntu (Dapper), I was able to import my keys, I used the Seahorse gui.

Today I wanted to encrypt a file just to see how it works. I selected a file called screenshot.png, I right clicked on it and selected 'encrypt'.

This brought up a window which allowed me to choose recipients, I chose myself, and then signed it too.

I was asked for my passphrase and then the file was encrypted and a new copy appeared on my desktop called screenshot.png.pgp

Now when I double click on screenshot.png.pgp I get a message saying: Couldn't display "home/me/Desktop/screenshot.png.pgp"

What am I doing wrong?

Thanks in advance.

PartisanEntity
December 14th, 2006, 08:17 AM
Just a polite bump. thanks.

PartisanEntity
December 15th, 2006, 09:23 AM
bump

PartisanEntity
December 16th, 2006, 11:01 AM
bumptybump...

PartisanEntity
December 18th, 2006, 04:37 PM
yet another hopeful bump.

etienne.navarro
January 20th, 2007, 09:07 PM
The file screenshot.png.pgp is the GPG encrypted file, so of course you cannot open it.
There seems to be a problem with menu context and file extension, the file extension should be .gpg not .pgp. So rename the file to screenshot.png.gpg.
Then you can right click on the file and there should be an option to decrypt it.
Alternatively, use the commandline and issue
gpg -o screenshot.png -d screenshot.png.gpg

MJN
January 22nd, 2007, 06:48 PM
Huh?

He's already said he's using PGP, hence a .pgp extension sounds pretty reasonable to me! :confused:

Mathew

etienne.navarro
January 23rd, 2007, 12:22 AM
Yeah but he said he was using Seahorse which uses GnuPG so the extension would be .gpg.

When he right clicks on the file and selects "Encrypt", the file is encrypted using OpenPGP and the encrypted file is called originalfilename.ext.pgp. There is no context associated with a .pgp file so if the file is renamed to originalfilename.ext.gpg there is a context associated to decrypt it.

I believe this is a bug. What do you think?

MJN
January 23rd, 2007, 06:36 AM
Ah... Twas me that has made the mistake... Sorry. I read the bit about having used 'PGP Desktop' but not the fact that this was when they were using Windows...

PartisanEntity
January 23rd, 2007, 08:15 AM
Thanks for the info, since posting these questions I have reinstalled Ubuntu on a new hard disk, I have not gotten around to setting up Seahorse, once I do so I will give the en/decryption another go and post back.