LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-23-2005, 07:51 AM   #1
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 385

Rep: Reputation: 30
Decrypting files using GNU PG


I'm trying to migrate from Windows XP and have recently installed Debian Sarge. Now I've encrypted some files in XP using PGP Desktop 9. I successfully imported my key into GNU PG but when I select decrypt from the context menu and I enter my pass phrase correctly nothing happens. I cannot find the decrypted files. I am not sure they even have been decrypted as there was no progress bar, etc the application just closes. There is no error about an incorrect passphrase, I tried deliberately entering it incorrectly just to check.

Please help
 
Old 08-23-2005, 06:05 PM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Sounds like it may be crashing. Try doing it from the command line like this:
Code:
gpg encryptedfile.xxx
 
Old 08-25-2005, 11:02 AM   #3
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 385

Original Poster
Rep: Reputation: 30
I tried the CLI from root:

#gpg /Home/mark/Mark's/Cv.doc.pgp
>

But this time it didn't even prompt me for a passphrase, it just gave me a '>'. I don't think it's crashing. Do you think it could be because it was encrypted using a different app and OS?
 
Old 08-25-2005, 05:49 PM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Make that:
Code:
gpg "/Home/mark/Mark's/Cv.doc.pgp"
and try again. Remember that the ' is a special character in the shell - it means the start or end of a string. So you either need to put the whole thing inside " marks or escape the ' like this:
Code:
gpg /Home/mark/Mark\\'s/Cv.doc.pgp

Last edited by tkedwards; 10-12-2005 at 03:38 AM.
 
Old 10-12-2005, 02:31 AM   #5
RaymondHermans
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
I'm having a problem very similar to Marc's.

I'm running both Mandrake 9.2 and XP on my machine. I have a lot of PGP encrypted (XP side) files that I need to access when running Linux. When I use

pgp file_to_decrypt

I'm asked for my passphrase, I type it but the cursor doesnt move and apparantly the passphrase is not enterred either because I get an error message

You need a pass phrase to decrypt this file ....

I've already tried to put my passphrase in a file and export that to PGPPASSFILE but no luck either.


Any solutions anybody ?

tia,

Ray
 
Old 10-12-2005, 05:48 AM   #6
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Try giving infile outfile as in: gpg --decrypt filename targetfilename
 
Old 10-12-2005, 06:30 AM   #7
RaymondHermans
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
Makuyl,

Tried and died....

There's something that bothers me... in almost all posts I see GpG and not PgP mentioned... is there a difference ?

Ray
 
Old 10-12-2005, 07:25 AM   #8
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Well, if I have understood it correctly, gpg stands for "GNU privacy guard" and is commonly used in linux whereas pgp stands for "pretty good privacy". Mostly openpgp is used.
http://www.gnupg.org/(en)/documentation/faqs.html

Did you config gpg by generating keys? http://aplawrence.com/Basics/gpg.html
 
Old 10-12-2005, 08:14 AM   #9
RaymondHermans
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
Thats also the difference as I understood it.

I got pgp of the official pgpi site.

The keys are the ones created under PGP (in XP) and work fine ENcrypting a file... which I can DEcrypt under XP to check the encryption process.
I think the problem lies in PGP (under Linux) blockin the typing I'm doing when entering the pass phrase ... do you think thats possible ? It's that or else something very screwy in the PGP application.

Ray
 
Old 10-12-2005, 12:21 PM   #10
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
I really don't know why it would block typing. Sorry, but all I can suggest at this point is to follow the howto closely and try using the gpg command instead of pgp.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
strategy for decrypting Y0jiMb0 Programming 9 11-23-2005 07:14 AM
GnuPG file decrypting rblampain Linux - Security 4 08-11-2005 12:12 AM
decrypting a vim file djgerbavore Linux - Newbie 1 06-07-2005 01:38 PM
dvd decrypting in linux holomatrix Linux - Software 6 12-20-2004 07:33 PM
HELP...Problems decrypting DVDs czechknight93 Linux - Software 6 04-09-2004 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration