Hi,
You can simply use the zip command
zip("myArchive.zip",
files="myFileToEncrypt.csv",
flags = "-P myPass")
The flags -P sets the password "myPass" in this case.
Remember that the password is only needed to extract the files. Viewing the list of files in the zip (but not the content of the files) can be done without password.
Hope this helps,
PJ