Mac os X Zip Files with Password

On Mac os X system, we usually zip file with "right click files -> select command Compress 'xxx' ", but what if we need zip file with password to protect it? we can do it with a simple shell command, it's just piece of cake, let me show you how to do it!