soujii
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
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
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.
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
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.
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)
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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
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
did you try 'zip -e', resp. does your 'zip' support this?
If not, I would suggest using GNUpg
wmp