Encrypt a file in Unix shell, email through mailx, and detatched from Outlook with key.

I have a script that emails a file through a Unix Kornshell script. This file needs to be encrypted where the user needs a password to read, after detatching through Outlook. I currently use uuencode but all users can still read the file. How do I encrypt through ksh and then give this code to a user? This must be automated with no user intervention for the encryption.
rayskeltonAsked:
Who is Participating?
 
Nick UpsonConnect With a Mentor Principal Operations EngineerCommented:
or there is this, the encrypt command.

http://www.cs.sunysb.edu/facilities/FAQ/MiscEncryptFile.html

I don't know if outlook can handle it
0
 
Nick UpsonPrincipal Operations EngineerCommented:
gzip the file as the first step, specifying a password
0
 
rayskeltonAuthor Commented:
I am unaware of being able to encrypt a file with gzip.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
Nick UpsonPrincipal Operations EngineerCommented:
http://www.info-zip.org/

its zip not gzip, which uses pgp encryption
0
 
rayskeltonAuthor Commented:
I was looking at pgp, although is not installed on our machines and will need to go through much red tape to install.
0
 
rayskeltonAuthor Commented:
Thanks for all
0
 
TintinCommented:
I don't know how the 'crypt' command can be any help as Outlook or Windows certainly won't recognise it.  ZIP with a password would be the easiest and most reliable method.
0
 
rayskeltonAuthor Commented:
Your correct, my task is to encrypt on Unix and read through Outlook. I passed this issue to our corporate security deptartment and am letting them come up with a viable solution. Thanks for your response.
0
 
TintinCommented:
Can you please explain why you think the ZIP solution is not appropriate?  It will do everything that you've described.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.