LinuxQuestions.org
Register a domain and help support LQ
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, 10: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, 10:30 AM   #2
PsypherPunk
Member
 
Registered: Jul 2005
Location: Leeds, UK
Distribution: SuSE 10.0
Posts: 108

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, 10:34 AM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
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, 10: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, 10: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, 02:18 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

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


All times are GMT -5. The time now is 04:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration