LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2012, 02:12 AM   #1
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 7
Posts: 406
Blog Entries: 4

Rep: Reputation: 80
How to use pgp


Hello,
Is there a step by step guide how to use pgp? /seahorse?

The manpage has lots of stuff on it, but not sure what to look for.


cheers nigel
 
Old 08-20-2012, 02:21 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well it depends what you want to do, doesn't it? That's *EXACTLY* why there's lots in the man page. if it was just a few steps to cover the one thing it did, that's all the man page would list. That said, there certanly are many thousands of blog entries and other docs out there where someone has written down how to do the specific thing *they* wanted, but if that's not the same as what you want, it's not going to help much is it?
 
Old 08-20-2012, 05:51 AM   #3
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 7
Posts: 406

Original Poster
Blog Entries: 4

Rep: Reputation: 80
encrypt and decrypt some files.
I have some old files that I cannot un-encrypt .
It is difficult to use.
I can click on old pgp file, but cannot see anything.
 
Old 08-20-2012, 07:35 AM   #4
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
To use symmetric algorythm for encrypting files you do
Code:
gpg -c file
It will use CAST5 by default which is very strong.
If you want to use other algorythm
Code:
gpg -c --cipher-algo ... file
Available algorythms:
Code:
3DES         AES          AES192       AES256       BLOWFISH     CAMELLIA128  CAST5        TWOFISH
Use one of them instead of "...".

To decrypt:
Code:
gpg file.gpg
You will have to enter a passphrase and if you forget it - file's gone. Unless it was dictionary passphrase and you can bruteforce it, there's nothing you can do to restore passphrase. GnuPG is not a toy.

You can also use asymmetric algorythms to encrypt files and e-mails but that is a bit more complicated. Let me know if you need a HOWTO.
 
Old 08-20-2012, 09:02 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try this http://www.gnupg.org/gph/en/manual.html
Has examples as well as background explanations.
 
Old 08-20-2012, 11:28 PM   #6
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 7
Posts: 406

Original Poster
Blog Entries: 4

Rep: Reputation: 80
Thanks for the help.
I can encrpyt a file, but I cannot get to this old one.
I don't know which version of gpg it comes from. The data is not all that important. I saved a copy in plain text in case this might happen.

Code:
[ewok@endor Desktop]$ gpg Bank_xfer1.doc.pgp 
gpg: encrypted with ELG-E key, ID E5E1AC81
gpg: decryption failed: secret key not available
 
Old 08-20-2012, 11:39 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
this might be a "problem"
Quote:
I have some old files that I cannot un-encrypt .
...............
I can encrpyt a file, but I cannot get to this old one.
do you have the OLD hash for them? or the old "key"?
if not this might be a unsolvable problem

HOW were they encrypted ? and using WHAT program ?

some older encryption programs DO have some known "bugs" that might make it possible to CRACK them ?????? or not .

there are some "cracking" tools to break encryption using the GPU and CUDA but...................
 
Old 08-20-2012, 11:53 PM   #8
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 7
Posts: 406

Original Poster
Blog Entries: 4

Rep: Reputation: 80
They were encrypted with gpg /Fedora 5.

Does the data exprire after time?
 
Old 08-21-2012, 12:13 AM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
the engine used in the antique fedora5 is vastly different than the one used in fedora 17

and a few known holes have been fixed and a new algorithm is used ( i think)
BUT unless you ARE a EXPERT in "cracking" encrypted files there is no easy way to unencrypt the files WITHOUT the original fedora key FROM the old fedora 5 install
even then was it gnomes key ring ? or KDE3's key ring ?
or
a public / private pair with the public half posted to a public server
and the private on the fedora key-ring ( or 3.5 floppy)

Quote:
Does the data exprire after time?
no, unless YOU set it to
but after time the old keys get lost

And on fedora with a NEW install EVERY 6 months
not only is it likely but almost a 100% certain fact that they WILL get lost
 
  


Reply

Tags
pgp, seahorse



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
PGP jokar.mohsen Linux - Security 1 05-06-2012 10:58 AM
[SOLVED] PGP business_kid Linux - Security 3 09-12-2011 03:11 AM
Pgp JenniJenni Linux - Newbie 1 10-11-2007 07:03 AM
Pgp Gins Linux - General 13 08-08-2006 03:29 PM
Pgp Ruishanko Linux - Newbie 13 10-07-2004 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:01 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