LinuxQuestions.org
Visit Jeremy's Blog.
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 10-18-2005, 09:10 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
gpg help.


I have a small document.That is my personal one.I want to encrypt that and then i need to decrypt when i need.I heard about gpg encryption tool in linux.I have looked in web and man pages but i can not understand.I tryied as far as i can.I have installed gpg command.

Can u pls tell me the simple step's to encrypt and decrypt and create a key.
Let us take file is personal.txt.
 
Old 10-18-2005, 09:30 AM   #2
PsypherPunk
Member
 
Registered: Jul 2005
Posts: 109

Rep: Reputation: 15
The command:

Code:
gpg --help
...should output most of the commands you need. ie. to generate a new key pair it's:

Code:
gpg --gen-key
...and to encrypt/decrypt it would be:

Code:
gpg --encrypt --recipient you@youremail.com personal.txt

gpg --decrypt personal.gpg
...where personal.gpg is the created, encrypted file.
 
Old 10-18-2005, 09:34 AM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Check this out,
GPG Docs

First you need to make a public - private key for your self.

Code:
man gpg
gives clear instructions as to how to encrypt a document. If you don't like that follow this.

There are GUI's available...seahorse, KGpg, GPA come to mind for Linux. WinPT for windows.

Everything you need is on the gnupg website. You might also have to install few libraries if you don't already have them but since you are using Mandrake, it would be easy to urpmi.

Tux,
 
Old 10-18-2005, 09:46 AM   #4
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
at the end i got this where this finger print is used.


generator a better chance to gain enough entropy.
+++++++++++++++++++++++++.++++++++++.++++++++++++++++++++++++++++++.++++++++++.+++++.++++++++++.++++ +.+++++++++++++++.+++++++++++++++.++++++++++......>+++++............................................ ........................................................+++++
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
+++++++++++++++++++++++++++++++++++.++++++++++++++++++++.+++++++++++++++.++++++++++..+++++...+++++++ ++++++++++++++++++.+++++++++++++++..++++++++++++++++++++>..++++++++++>+++++............>+++++....... ..+++++^^^^^^^^^^^^^^^
gpg: key 81D1D7B2 marked as ultimately trusted
public and secret key created and signed.

gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 2 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 2u
pub 1024D/81D1D7B2 2005-10-19
Key fingerprint = 0679 3CD3 B363 5E8B A035 C453 8092 083C 81D1 D7B2
uid navaladi
sub 2048g/1BC32883 2005-10-19

should i need this finger print key.
 
Old 10-18-2005, 09:56 AM   #5
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
thanks.Can we encrypt a directory?Which has a lot of files.Or only the files?.
 
Old 10-19-2005, 01:18 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Afaik, it's only for files, so I'd tar (+gzip) the dir, then gpg the result.
 
  


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
gpg --yes -e -r doctor_sniff Linux - Software 2 06-11-2005 12:21 AM
Using gpg? ginda Linux - Security 4 03-10-2005 09:13 AM
M2 and Gpg flux* Linux - Software 0 07-01-2004 01:29 PM
gpg chrismiceli Linux - General 1 04-19-2003 05:50 PM
Gpg ? antken Linux - General 2 09-01-2002 10:05 AM

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

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

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