tags:

views:

153

answers:

2

Please can anybody help me out for this...Thanks in advance

+1  A: 

Check out the Apache POI project. It is a Java API for Microsoft Documents, including Excel.

Even though I haven't used it myself, it seems like there is support for passwords in xls documents. If you want more detailed help you would need to be more specific, like @Sebastian says.

Edit: Is the protectSheet function from POI maybe what you are looking for?

Heinrich Filter
the password is not encrypted, which defeats the purpose
n002213f
+1  A: 

Why not zip the file and password protect the zip file (http://merkert.de/de/info/zipaes/src.zip), using AesZipOutputStream.zipAndEcrypt(...))

n002213f