password protect a zip file in unix and mail it using unix script.


Recommended Posts

I need to password protect a zip file in unix and mail it using unix script.

i have tried using zip -P but it gave me the eroor that encryption was not supported.

The requirement is to provide the password in command line so that the script can zip the file using the password and send it on a particular mail on daily basis.

Please help in this regard.

Link to comment
Share on other sites

Can i suggest moving from proprietary zip files to using gpg/pgp, your be able to encrypt the files, email them and decrypt them across OS platforms

Link to comment
Share on other sites

i tried the gpg option, however i could not find an option to specify the password in the command line(like -p for zip command) .. this is required because the command will be a part of the script that would be run on daily basis to zip a file and password protect it and finally mail it

Link to comment
Share on other sites

This topic is now closed to further replies.