Please follow the command below to create a .zip file with password:
>> zip -P yourpassword file_name.zip file_name (but the password will show up in history)
>> zip -e file_name.zip file_name (when one runs this command, then one is asked to enter the desired password and the password does not also show up in history).
]]>