How to create password protected excel file by using plugins

please guide . how to create password protected excel file by using plugins .
I tried on excel writer but in this , password protect only sheet not a file.