Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-20-2006, 01:38 PM
|
#1
|
Member
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492
Rep:
|
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!
|
|
|
07-20-2006, 01:54 PM
|
#2
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
|
GnuPG
Oh, 10-symbol limit, can not answer with just 5 chars...
|
|
|
07-20-2006, 02:08 PM
|
#3
|
Member
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492
Original Poster
Rep:
|
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?
|
|
|
07-20-2006, 02:15 PM
|
#4
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep:
|
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.
|
|
|
07-20-2006, 02:23 PM
|
#5
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
|
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 02:25 PM.
|
|
|
07-20-2006, 03:25 PM
|
#6
|
Member
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|