Password protecting zipped directories in bash

Viewed 47

When I use the -P option to zip files like this:

zip -P password filename.zip filename

It properly asks me for the password when I attempt to unzip it but when I attempt to do the same for difectories like this:

zip -r -P password archivename.zip directoryname

It for some reason doesn't ask for a password when I try to unzip it. Can anyone tell me why this is and how I can fix it?

0 Answers
Related