LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-11-2007, 03:22 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
gpg question


Is it possible for me to encrypt a message and have the recipients be everyone who has my public key instead of choosing who the recipients are?
 
Old 10-11-2007, 05:30 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
No, for two simple reasons:

1.Everyone has (or can have) your public key,
2. The encryption is symmetric; two keys are used (your private key and the public key of the recipient).

If the recipient doesn't have a key, you can't encrypt using gpg. There are other encryption methods that only rely on a single key. They are less secure, but if that meets your needs then you should investigate them. For example:

To encrypt a file:
Code:
openssl des3 -salt -in infile.txt -out encryptedfile.txt
To decrypt the file:
Code:
openssl des3 -d -salt -in encryptedfile.txt -out normalfile.txt
You will be prompted for the password; you need to share that passord with the receiver. However, as with all single key encryption, anyone with the password can decrypt the file. Only the intended recipient can decrypt a gpg encrypted file.
 
Old 10-15-2007, 08:32 PM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Moved: This thread is more suitable in Linux -> Security and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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
how to use gpg? minike Linux - Software 7 03-02-2006 07:42 PM
GPG Script Question Keene44 Programming 2 07-22-2005 04:15 PM
gpg question gazza Linux - Newbie 2 04-30-2004 05:28 AM
gpg chrismiceli Linux - General 1 04-19-2003 06:50 PM
Gpg ? antken Linux - General 2 09-01-2002 11:05 AM

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

All times are GMT -5. The time now is 04:19 PM.

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