title: Create a password protected Excel file using Apache POI?
body: <p>I am developing a simple Java program to create an Excel file using (Apache POI) API.
  I am using Oracle 10g as a database and using the ojdbc14 JAR file.</p>
  
  <p>I have a table called USERINFO, having three columns, namely <code>USERNAME</code>, <code>PASSWORD</code>, and <code>NAME.</code>
  Now using Apache POI, I have been able to put all the rows in an Excel file. </p>
  
  <p>Since the file contains sensitive data such as username and password, I want to make it password protected.
  On forums, I have found how to read password protected files, but not how to create them.
  So how I can achieve this?</p>