Link to home
Start Free TrialLog in
Avatar of soujii
soujiiFlag for India

asked on

ZIp the files using password

Hi

I have some set of files and I want to zip the files using the Unix command: 'zip  <zip file name> <files name>'.But I want ot encrypt the zip file using password so that no other one will open the files.Is there any parameter in zip command so that i can keepa password also for that
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Hi,
 
did you try 'zip -e', resp. does your 'zip' support this?
 
If not, I would suggest using GNUpg
 
wmp
 
... for GnuPG please look here ...
 
http://www.gnupg.org/features.en.html
 
 
Avatar of 97WideGlide
97WideGlide

Try using -e as in

zip -e <zipfiles>

From the man page :
-e
Encrypt the contents of the zip archive using a password which is entered on the terminal in response to a prompt (this will not be echoed; if standard error is not a tty, zip will exit with an error). The password prompt is repeated to save the user from typing errors.

try the -e option with zip command which will prompt you for password

http://amath.colorado.edu/computing/software/man/zip.html
Where security  is  truly  important,  use strong  encryption  such as Pretty Good Privacy instead of the relatively weak encryption provided by standard zipfile utilities.



Avatar of soujii

ASKER

Hi,

I have tried with this command in Unix.But it is giving this elow error.
$ zip -e sss.zip test.txt

zip error: Invalid command arguments (encryption not supported)
ASKER CERTIFIED SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates 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
If you want to still use zip then I am sure that you can download an "upgrade" which has encryption support built in.  I don't know your particular flavor of OS so I can't point you toward a link.  

At the very least, you can probably very easily compile the support in yourself but I know that someone else has already done it.
Hi again,

I'd really urge you to use GnuPG!

 You'll have strong encryption, and if you don't want to use the public/private asymmetric processing, there is a 'symmetric' option, too.

... and there is no problem compiling it on Solaris.

wmp