Link to home
Start Free TrialLog in
Avatar of rayskelton
rayskelton

asked on

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.
Avatar of Nick Upson
Nick Upson
Flag of United Kingdom of Great Britain and Northern Ireland image

gzip the file as the first step, specifying a password
Avatar of rayskelton
rayskelton

ASKER

I am unaware of being able to encrypt a file with gzip.
http://www.info-zip.org/

its zip not gzip, which uses pgp encryption
I was looking at pgp, although is not installed on our machines and will need to go through much red tape to install.
ASKER CERTIFIED SOLUTION
Avatar of Nick Upson
Nick Upson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for all
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.
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.
Can you please explain why you think the ZIP solution is not appropriate?  It will do everything that you've described.