Password protected xls/xlsx file in java
I have created password protected zip file which has xls file with the help of this http://java.sys-con.com/node/1258827 . My question is ,Is there any java api which will create password protected xls file instead of zip file. I want to directly apply password on xls file.Encryption/Decryption is the option but want to prompt when when double clicked on file. edit: I got this HSSFSheet.protectSheet("xyz"); but it only makes sheet read only. Even I have tried this hssfworkbook.writeProtectWorkbook("abc", "abc"); but its not prompting for password. Edit1:There is the method in org.apache.poi