LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 4
Posts: 297
Blog Entries: 4

Rep: Reputation: 52
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,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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 4
Posts: 297
Blog Entries: 4

Original Poster
Rep: Reputation: 52
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: Arch + X.org + IceWM
Posts: 1,195

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
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,246

Rep: Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025
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 4
Posts: 297
Blog Entries: 4

Original Poster
Rep: Reputation: 52
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
Guru
 
Registered: Aug 2005
Posts: 12,696

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
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 4
Posts: 297
Blog Entries: 4

Original Poster
Rep: Reputation: 52
They were encrypted with gpg /Fedora 5.

Does the data exprire after time?
 
Old 08-21-2012, 12:13 AM   #9
John VV
Guru
 
Registered: Aug 2005
Posts: 12,696

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
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


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
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


All times are GMT -5. The time now is 06:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration