ZIP a file in unix with password

is it possible to zip a file in unix(solaris) with password protection inside a shell script.
anilmahantyAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
masheikConnect With a Mentor Commented:
hello anilji,
you can use "pkzip" to zip a file using password.
to set a password when you zip a file,use the command given in the following link,
http://www.uwm.edu/~dtoth/pkzip.html#password
i am right now not on unix so i can't able to test,
hope this helps...
0
 
masheikCommented:
zip the file first,
use crypt command to protect the zip file using password
http://www.u.arizona.edu/udocs/unix-cmds.html#crypt
0
 
anilmahantyAuthor Commented:
Hi,
Thanks for this solution.
But its not work like zip with password.
Just we are encrypting a file, is there any possible way to zip with password.
Because that password protected file need to send in mail and that zip will open in windows.
For this it need to zip with password which one can also open in windows also.

Regards,
  Anil
0
 
anilmahantyAuthor Commented:
Hi Masheik,
Ok, Thanks for this info, now i need to install PKZIP in my UNIX server.
After that using PKZIP i can zip with password.

Regards,
  Anil
0
All Courses

From novice to tech pro — start learning today.