zip command with -e flag (encrypt).

zip -e [target or destination.zip] [file or folder source to zip up]

you could specify a -r or recursively zip all files in the source folder

zip -er target.zip source_dir