LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-20-2006, 12:38 PM   #1
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
Encryption question


Hello,

I have two questions, probably pretty basic, about encryption. Hopefully someone will be nice enough to answer them for me. I don't have much experience in this area.

1) Is it possible to have an encryption program that uses seperate keys to encrpyt and decrypt? What I need is to have a "decryption" key stored on a CD-ROM or likewise, and have a user encrypt a given file, but make it so that it can only be decrypted with the key on the CD?

2) Can anyone recommend a good, free Linux command-line program to do this?

Thanks!
 
Old 07-20-2006, 12:54 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
GnuPG
Oh, 10-symbol limit, can not answer with just 5 chars...
 
Old 07-20-2006, 01:08 PM   #3
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Original Poster
Rep: Reputation: 31
ha... wait.. ha ha ha ha ha.

Thanks. I'll take a look at it. Can you explain a bit about the whole seperate keys thing... is there a certain name for it?
 
Old 07-20-2006, 01:15 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
GnuPG seconded.

The two keys thing is called "public key cryptography". A public key is used to encrypt a file, and then the corresponding private key is the ONLY key that can decrypt the file. It's the same crypto mechanism (in theory, actual implementations differ) used in SSH, https, other SSL connections, etc. The most common algorithm implementing public key crypto is RSA.

Wikipedia can provide many more details, by the way.
 
Old 07-20-2006, 01:23 PM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
In gpg it is public key-secret key division. As I understand, you export public key to a file on CD, and user imports it, and encrypts file with -r (recipient) option.

Last edited by raskin; 07-20-2006 at 01:25 PM.
 
Old 07-20-2006, 02:25 PM   #6
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Original Poster
Rep: Reputation: 31
I'm vaguely familiar with the public/private key schema, I just wan't sure exactly how it applied to encryption and decryption (I've only had direct contact with it through SSH authentication).

I'll check in the GnuPG docs.

Thanks.
 
  


Reply



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
Linksys info on how to setup bootup on kernel its here and question on Encryption? MaximalSbcYahoo Linux - Wireless Networking 1 04-11-2005 11:55 AM
encryption dr_zayus69 Linux - Software 2 11-28-2004 11:03 PM
question on SSL, encryption sopiaz57 Linux - General 1 09-10-2003 02:54 PM
Mandrake 9.0 Wireless Works without encryption.. does not with encryption topcat Linux - Wireless Networking 3 05-04-2003 08:47 PM
Anyone know anything about encryption? BrianK Linux - General 1 07-09-2002 10:55 PM

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

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