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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Nick UpsonPrincipal Operations EngineerCommented:
http://www.info-zip.org/

its zip not gzip, which uses pgp encryption
0
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

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
Nick UpsonPrincipal 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.