The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File size after pgp encryption tekster757 UNIX for Dummies Questions & Answers 1 04-11-2008 09:20 AM
How to use PGP File Encryption sandeepb Security 2 10-04-2007 06:47 AM
SCO OpenServer 5 and File Encryption coreysan UNIX for Advanced & Expert Users 1 05-31-2007 05:14 PM
File password protection/encryption rdudejr AIX 2 07-09-2006 03:43 PM
encryption of text file for ftp dchalavadi UNIX for Advanced & Expert Users 3 05-16-2002 08:09 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-16-2006
Registered User
 

Join Date: Jun 2005
Posts: 15
Stumble this Post!
Unhappy File encryption/Key encryption ????

My dilemma,

I need to send, deemed confidential, information via e-mail (SMTP). This information is sitting as a file on AIX. Typically I can send this data as a e-mail attachment via what we term a "mail filter" using telnet. I now would like to somehow encrypt the data and send it to a e-mail address external to the company via the internet to a recipient that is probably using Microsoft Outlook. Obviously I what him to somehow decrypt it to be able to use/view the attachment. I have looked at PKI, but the concept is not totally clear to me, as where is the public and private keys held, what key is exchanged and when, how is this done in the context of sending e-mail using SMTP via telnet (is the key an attachment) how does the recipient know this is a key encrypted file and what key to use, how does this relate to the key in his possession, does he need extra software (example). I was looking at tar, compress, gzip, pax and other standard UNIX commands to achieve a password protected file, but have had no luck thus far. Please can you shed some light on at leased some of my question.

Regards
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-18-2006
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,444
Stumble this Post!
Hmmm..too bad no expert in encryption packages responded to this. I'm not sure what pki is. But this stuff generally flows like this. I would generate a pair of keys. One is my private key. I must keep that secret. The other key is my public key. I can give that out to everyone. It does not matter who knows it. So, for example, I might just publish it...on this website somehow.

Next, let's say you decide to send me a Private Message. Maybe you will just send it in plaintext. Or maybe you will use my public key to encrypt it. How does the recipient(me in this case) know? Well, let's look at two copies of a message, one encrypted and the other in plaintext...
Quote:
$ cat message
Hey Perderabo,

Do you have a typo in that File Permissions tutorial? Isn't it chmod
instead of chdom?


$ cat message2
M2&5Y(%!E<F1E<F%B;RP*"D1O('EO=2!H879E(&$@='EP;R!I;B!T:&%T($9I
M;&4@4&5R;6ES<VEO;G,@='5T;W)I86P_("!)<VXG="!I="!C:&UO9"`*:6YS
1=&5A9"!O9B!C:&1O;3\*"@IT
$
Now in my case I can combine my knowledge of computer science, mathematics, linguistics, and sematics to determine which is the encrypted message. But usually an encryption package will add a header and footer line around the encrypted message. (This includes uuencode, which is what I used to encrypt the above message. I removed the header and the footer.) The only encyption program I can think of that doesn't do this is the original crypt program in unix. And then typically I would feed the encrypted message, including that header and footer into the decryption program. To decrypt the message, I need my private key.

I have not used crypto packages very much. I see some folks putting the public key on their web sites, in signatures, etc. Publicizing your public key is similiar to the problem of publicizing your email address.

With email, by using the mime extentions, you can associate a content type with the email body or with email attachments. So you can send plain text, html, rich text, sometimes even Microsoft Word documents through email. Some encryption packages interact with email the same way. I hope this gets you started. If anyone out there who actually uses this stuff has anything to add, please jump in.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0